Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern when attempting to reclaim a vnode, tell the lockmg...



details:   https://anonhg.NetBSD.org/src/rev/91affac20dfb
branches:  trunk
changeset: 515744:91affac20dfb
user:      chs <chs%NetBSD.org@localhost>
date:      Thu Oct 04 05:46:45 2001 +0000

description:
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.

diffstat:

 sys/kern/vfs_subr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b92e2a569b0e -r 91affac20dfb sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c       Thu Oct 04 05:32:50 2001 +0000
+++ b/sys/kern/vfs_subr.c       Thu Oct 04 05:46:45 2001 +0000
@@ -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 @@
                                        break;
                                }
                                if (vn_lock(vp, LK_EXCLUSIVE | LK_NOWAIT |
-                                           LK_INTERLOCK)) {
+                                           LK_RECURSEFAIL | LK_INTERLOCK)) {
                                        continue;
                                }
                                VOP_UNLOCK(vp, 0);



Home | Main Index | Thread Index | Old Index