diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-06-05 13:43:57 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-06-05 13:43:57 +0000 |
commit | 4f92724562aeddd68892b2f2902f15196fb15aa3 (patch) | |
tree | e2581f585ccf82344e263c87925295b69eb2e7d6 /sys/security/audit/audit_worker.c | |
parent | 20a9b30021810cb9d9be3ea013ee19b5cec7b704 (diff) | |
download | FreeBSD-src-4f92724562aeddd68892b2f2902f15196fb15aa3.zip FreeBSD-src-4f92724562aeddd68892b2f2902f15196fb15aa3.tar.gz |
Rename audit_cv to audit_worker_cv, as it wakes up the audit
worker.
Rename audit_commit_cv to audit_watermark_cv, since it is there to
wake up threads waiting on hitting the low watermark. Describe
properly in comment.
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/audit/audit_worker.c')
-rw-r--r-- | sys/security/audit/audit_worker.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/security/audit/audit_worker.c b/sys/security/audit/audit_worker.c index 97ea66f..7da4f99 100644 --- a/sys/security/audit/audit_worker.c +++ b/sys/security/audit/audit_worker.c @@ -420,7 +420,7 @@ audit_worker(void *arg) */ while (!audit_replacement_flag && TAILQ_EMPTY(&audit_q)) { AUDIT_PRINTF(("audit_worker waiting\n")); - cv_wait(&audit_cv, &audit_mtx); + cv_wait(&audit_worker_cv, &audit_mtx); AUDIT_PRINTF(("audit_worker woken up\n")); AUDIT_PRINTF(("audit_worker: new vp = %p; value of " "flag %d\n", audit_replacement_vp, @@ -460,7 +460,7 @@ audit_worker(void *arg) TAILQ_INSERT_TAIL(&ar_worklist, ar, k_q); } if (lowater_signal) - cv_broadcast(&audit_commit_cv); + cv_broadcast(&audit_watermark_cv); mtx_unlock(&audit_mtx); while ((ar = TAILQ_FIRST(&ar_worklist))) { @@ -525,7 +525,7 @@ audit_rotate_vnode(struct ucred *cred, struct vnode *vp) * Wake up the audit worker to perform the exchange once we * release the mutex. */ - cv_signal(&audit_cv); + cv_signal(&audit_worker_cv); /* * Wait for the audit_worker to broadcast that a replacement has |