From 8b3bd4234181c846d8c9fdffeb32cc71faff84ad Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Tue, 2 Mar 1999 20:26:39 +0000 Subject: [PATCH] Remove inapropriate use of VOP_ISLOCKED() This produced races resulting in panics and filesystem corruptions under some circumstances. Reviewed by: luoqi chen Reviewed by: Kirk McKusick Submitted by: Matt Dillon --- sys/kern/vfs_bio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 75111597728..b9fd96a5806 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;