From 45a0d1ed7a3dbbea249ce1e36d52e9c0b7fe4e79 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Wed, 10 Aug 2005 11:46:03 +0000 Subject: [PATCH] Do not drop the vnode interlock if vdropl is called on already doomed vnode. vdropl callers expect it to return with interlock still being held. MFC after: 2 days --- sys/kern/vfs_subr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index af6cbb09282..53bd9a853aa 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2333,10 +2333,8 @@ vgonel(struct vnode *vp) /* * Don't vgonel if we're already doomed. */ - if (vp->v_iflag & VI_DOOMED) { - VI_UNLOCK(vp); + if (vp->v_iflag & VI_DOOMED) return; - } vp->v_iflag |= VI_DOOMED; /* * Check to see if the vnode is in use. If so, we have to call