There is no need to count waiters for the runningbufspace.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2013-07-13 19:34:34 +00:00
parent c7c536c7f5
commit da4ca6c8ab

View File

@ -561,7 +561,7 @@ waitrunningbufspace(void)
mtx_lock(&rbreqlock);
while (runningbufspace > hirunningspace) {
++runningbufreq;
runningbufreq = 1;
msleep(&runningbufreq, &rbreqlock, PVM, "wdrain", 0);
}
mtx_unlock(&rbreqlock);