mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Improve a comment.
This commit is contained in:
parent
a2302ba6a7
commit
cb2394085d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185465
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user