summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-02-10 22:47:34 +0000
committerjeff <jeff@FreeBSD.org>2003-02-10 22:47:34 +0000
commit4d663017dc8999384de372a2083892b9a7d0c41d (patch)
treed97dc32cfddae188c855b97c59e201ed4989fad6 /sys/kern/vfs_bio.c
parent249222186474cb846cf7e7cbde6039f322c646af (diff)
downloadFreeBSD-src-4d663017dc8999384de372a2083892b9a7d0c41d.zip
FreeBSD-src-4d663017dc8999384de372a2083892b9a7d0c41d.tar.gz
- Add a comment about a race that will happen without Giant.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 8274761..3dbbed6 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1865,6 +1865,7 @@ restart:
if (BUF_LOCK(bp, LK_EXCLUSIVE | LK_NOWAIT) != 0)
panic("getnewbuf: locked buf");
+ /* XXX bqlock needs to be held across bremfree() */
mtx_unlock(&bqlock);
bremfree(bp);
OpenPOWER on IntegriCloud