summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-03-23 13:45:24 +0000
committerkib <kib@FreeBSD.org>2008-03-23 13:45:24 +0000
commit5ddf5664ccd9a5fa53eda81e8ec89445bfaf3c41 (patch)
tree72ecaa475ca0981f6c6e503a2d9814052b1078e5 /sys/ufs
parent5e55dd67176633e7adc6e3726f22960f15941c9a (diff)
downloadFreeBSD-src-5ddf5664ccd9a5fa53eda81e8ec89445bfaf3c41.zip
FreeBSD-src-5ddf5664ccd9a5fa53eda81e8ec89445bfaf3c41.tar.gz
Yield the cpu in the kernel while iterating the list of the
vnodes belonging to the mountpoint. Also, yield when in the softdep_process_worklist() even when we are not going to sleep due to buffer drain. It is believed that the ULE fixed the problem [1], but the yielding seems to be needed at least for the 4BSD case. Discussed: on stable@, with bde Reviewed by: tegge, jeff [1] MFC after: 2 weeks
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 7cb7b40..255723c 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -857,6 +857,7 @@ softdep_process_worklist(mp, full)
*/
if (loopcount++ % 128 == 0) {
FREE_LOCK(&lk);
+ uio_yield();
bwillwrite();
ACQUIRE_LOCK(&lk);
}
OpenPOWER on IntegriCloud