summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-03-02 20:26:39 +0000
committerjulian <julian@FreeBSD.org>1999-03-02 20:26:39 +0000
commit57bcf97676565454c78f7e428b181cc18fe3f31c (patch)
treeb0a229f3981b099ef7bb11585857d461b915d17e /sys/kern/vfs_bio.c
parent00c7412b032704bc1466c2ff0176c2d0b2541793 (diff)
downloadFreeBSD-src-57bcf97676565454c78f7e428b181cc18fe3f31c.zip
FreeBSD-src-57bcf97676565454c78f7e428b181cc18fe3f31c.tar.gz
Remove inapropriate use of VOP_ISLOCKED()
This produced races resulting in panics and filesystem corruptions under some circumstances. Reviewed by: luoqi chen <luoqi@freebsd.org> Reviewed by: Kirk McKusick <mckusick@mckusick.com> Submitted by: Matt Dillon <dillon@freebsd.org>
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 7511159..b9fd96a 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -11,7 +11,7 @@
* 2. Absolutely no warranty of function or purpose is made by the author
* John S. Dyson.
*
- * $Id: vfs_bio.c,v 1.198 1999/01/24 00:51:11 dillon Exp $
+ * $Id: vfs_bio.c,v 1.199 1999/01/27 21:49:58 dillon Exp $
*/
/*
@@ -1551,7 +1551,7 @@ loop:
* Normally the vnode is locked so this isn't a problem.
* VBLK type I/O requests, however, don't lock the vnode.
*/
- if (VOP_ISLOCKED(vp) != LK_EXCLUSIVE && gbincore(vp, blkno)) {
+ if (gbincore(vp, blkno)) {
bp->b_flags |= B_INVAL;
brelse(bp);
goto loop;
OpenPOWER on IntegriCloud