Searched hist:184488 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/sys/security/audit/
H A Daudit_pipe.cdiff 184488 Thu Oct 30 20:08:15 MDT 2008 rwatson 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.

MFC after: 2 months
Sponsored by: Apple, Inc.

Completed in 68 milliseconds