when attempting to reclaim a vnode, tell the lockmgr() that it's ok

to just fail if we already hold the lock.  we'll skip that vnode
and try another.  fixes PR 14090.
This commit is contained in:
chs 2001-10-04 05:46:45 +00:00
parent d75115bcb0
commit 90a3a778a7

@ -1,4 +1,4 @@
/* $NetBSD: vfs_subr.c,v 1.159 2001/09/26 00:59:57 enami Exp $ */
/* $NetBSD: vfs_subr.c,v 1.160 2001/10/04 05:46:45 chs Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -483,7 +483,7 @@ getnewvnode(tag, mp, vops, vpp)
break;
}
if (vn_lock(vp, LK_EXCLUSIVE | LK_NOWAIT |
LK_INTERLOCK)) {
LK_RECURSEFAIL | LK_INTERLOCK)) {
continue;
}
VOP_UNLOCK(vp, 0);