Improve a comment.

This commit is contained in:
Joseph Koshy 2008-11-30 05:10:14 +00:00
parent a2302ba6a7
commit cb2394085d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185465

View File

@ -281,15 +281,18 @@ pmclog_loop(void *arg)
if ((lb = TAILQ_FIRST(&po->po_logbuffers)) == NULL) {
mtx_unlock_spin(&po->po_mtx);
/* wakeup any processes waiting for a FLUSH */
/*
* Wakeup the thread waiting for the
* PMC_OP_FLUSHLOG request to
* complete.
*/
if (po->po_flags & PMC_PO_IN_FLUSH) {
po->po_flags &= ~PMC_PO_IN_FLUSH;
wakeup_one(po->po_kthread);
}
(void) msleep(po, &pmc_kthread_mtx,
PWAIT, "pmcloop", 0);
(void) msleep(po, &pmc_kthread_mtx, PWAIT,
"pmcloop", 0);
continue;
}