Deleted Added
full compact
30c30
< * $FreeBSD: head/sys/security/audit/audit.c 156889 2006-03-19 17:34:00Z rwatson $
---
> * $FreeBSD: head/sys/security/audit/audit.c 159261 2006-06-05 13:43:57Z rwatson $
139c139
< struct cv audit_cv;
---
> struct cv audit_worker_cv;
142,146c142,144
< * Condition variable to signal to the worker that it has work to do:
< * either new records are in the queue, or a log replacement is taking
< * place.
< *
< * XXXRW: This description is incorrect.
---
> * Condition variable to flag when crossing the low watermark, meaning that
> * threads blocked due to hitting the high watermark can wake up and continue
> * to commit records.
148c146
< struct cv audit_commit_cv;
---
> struct cv audit_watermark_cv;
242,243c240,241
< cv_init(&audit_cv, "audit_cv");
< cv_init(&audit_commit_cv, "audit_commit_cv");
---
> cv_init(&audit_worker_cv, "audit_worker_cv");
> cv_init(&audit_watermark_cv, "audit_watermark_cv");
430c428
< cv_wait(&audit_commit_cv, &audit_mtx);
---
> cv_wait(&audit_watermark_cv, &audit_mtx);
438c436
< cv_signal(&audit_cv);
---
> cv_signal(&audit_worker_cv);