From a6c6a93c895a547bf58239fcc656498ec4319832 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Sun, 30 Nov 2003 22:09:58 +0000 Subject: [PATCH] - Don't forget to unlock the vnode interlock in the LK_NOWAIT case. Submitted by: Stephan Uphoff Approved by: re (rwatson) --- sys/kern/vfs_subr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 8a49c1371659..3c612cedd134 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2099,7 +2099,8 @@ vget(vp, flags, td) if ((flags & LK_NOWAIT) == 0) { vp->v_iflag |= VI_XWANT; msleep(vp, VI_MTX(vp), PINOD | PDROP, "vget", 0); - } + } else + VI_UNLOCK(vp); return (ENOENT); }