summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2008-11-03 14:11:06 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2008-11-03 14:11:06 +0000
commitab8ce5ccf2de7d4704d13732e887be4b36e102f5 (patch)
tree6163e6e72e91be6b8c117aa323f7247a64a2e304
parentd8b39c96fc650801e0de2bb94d600c6d658f70d0 (diff)
Notes
-rw-r--r--sys/kern/vfs_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 4bdbb47d52c3..00df4d064488 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -361,7 +361,7 @@ vfs_busy(struct mount *mp, int flags, struct mtx *interlkp,
}
if (interlkp)
mtx_unlock(interlkp);
- lkflags = LK_SHARED | LK_INTERLOCK;
+ lkflags = LK_SHARED | LK_INTERLOCK | LK_NOWAIT;
if (lockmgr(&mp->mnt_lock, lkflags, MNT_MTX(mp), td))
panic("vfs_busy: unexpected lock failure");
return (0);