Date: Fri, 6 Feb 2009 12:24:30 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/security/audit audit_pipe.c Message-ID: <200902061224.n16CObZf040649@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2009-02-06 12:24:30 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sys/security/audit audit_pipe.c
Log:
SVN rev 188228 on 2009-02-06 12:24:30Z by rwatson
Merge r184488 from head to stable/7:
Break out single audit_pipe_mtx into two types of locks: a global rwlock
protecting the list of audit pipes, and a per-pipe mutex protecting the
queue.
Likewise, replace the single global condition variable used to signal
delivery of a record to one or more pipes, and add a per-pipe condition
variable to avoid spurious wakeups when event subscriptions differ
across multiple pipes.
This slightly increases the cost of delivering to audit pipes, but should
reduce lock contention in the presence of multiple readers as only the
per-pipe lock is required to read from a pipe, as well as avoid
overheading when different pipes are used in different ways.
Sponsored by: Apple, Inc.
Revision Changes Path
1.11.2.6 +127 -83 src/sys/security/audit/audit_pipe.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902061224.n16CObZf040649>
