]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Change the wakeup logic associated with having multiple sleepers
authorChristian S.J. Peron <csjp@FreeBSD.org>
Fri, 12 Oct 2007 15:09:02 +0000 (15:09 +0000)
committerChristian S.J. Peron <csjp@FreeBSD.org>
Fri, 12 Oct 2007 15:09:02 +0000 (15:09 +0000)
commit24f4142c18d217666268045c00235c6b082b54be
tree7b2ce06644ab19b152fcea5b15ffd2359df26c00
parent50ed6e07131ca103b633c224c72e4a7b7e7f8e49
- Change the wakeup logic associated with having multiple sleepers
  on multiple different audit pipes.  The old method used cv_signal()
  which would result in only one thread being woken up after we
  appended a record to it's queue.  This resulted in un-timely wake-ups
  when processing audit records real-time.

- Assign PSOCK priority to threads that have been sleeping on a read(2).
  This is the same priority threads are woken up with when they select(2)
  or poll(2).  This yields fairness between various forms of sleep on
  the audit pipes.

Obtained from: TrustedBSD Project
Discussed with: rwatson
MFC after: 1 week
sys/security/audit/audit_pipe.c