summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-11-08 18:09:18 +0000
committerdillon <dillon@FreeBSD.org>2001-11-08 18:09:18 +0000
commit08792e81f7b1fbeb088bb232448bf9bce38c0f1a (patch)
treed2f7444efc068aa98c002626c3f0d85ad39eabe8 /sys/kern/vfs_bio.c
parent571866fa141cf4cc3865fb7f564c535aa2238ec6 (diff)
downloadFreeBSD-src-08792e81f7b1fbeb088bb232448bf9bce38c0f1a.zip
FreeBSD-src-08792e81f7b1fbeb088bb232448bf9bce38c0f1a.tar.gz
Placemark an interrupt race in -current which is currently protected by
Giant. -stable will get spl*() fixes for the race. Reported by: Rob Anderson <rob@isilon.com> MFC after: 0 days
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index ba55013..4e84027 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -268,6 +268,10 @@ bufcountwakeup(void)
static __inline void
waitrunningbufspace(void)
{
+ /*
+ * XXX race against wakeup interrupt, currently
+ * protected by Giant. FIXME!
+ */
while (runningbufspace > hirunningspace) {
++runningbufreq;
tsleep(&runningbufreq, PVM, "wdrain", 0);
OpenPOWER on IntegriCloud