Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Change "ISSET(vp->v_iflag, VI_XLOCK)" to "vdead_che...



details:   https://anonhg.NetBSD.org/src/rev/af1d41c85a45
branches:  trunk
changeset: 815469:af1d41c85a45
user:      hannken <hannken%NetBSD.org@localhost>
date:      Thu May 19 14:48:28 2016 +0000

description:
Change "ISSET(vp->v_iflag, VI_XLOCK)" to "vdead_check(vp, VDEAD_NOWAIT)".

diffstat:

 sys/kern/vfs_mount.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6d4f73cdaa2e -r af1d41c85a45 sys/kern/vfs_mount.c
--- a/sys/kern/vfs_mount.c      Thu May 19 14:47:33 2016 +0000
+++ b/sys/kern/vfs_mount.c      Thu May 19 14:48:28 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_mount.c,v 1.38 2016/05/19 14:47:33 hannken Exp $   */
+/*     $NetBSD: vfs_mount.c,v 1.39 2016/05/19 14:48:28 hannken Exp $   */
 
 /*-
  * Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.38 2016/05/19 14:47:33 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.39 2016/05/19 14:48:28 hannken Exp $");
 
 #define _VFS_VNODE_PRIVATE
 
@@ -394,7 +394,7 @@
                }
                mutex_enter(vp->v_interlock);
                if (vnis_marker(vp) ||
-                   ISSET(vp->v_iflag, VI_XLOCK) ||
+                   vdead_check(vp, VDEAD_NOWAIT) ||
                    (f && !(*f)(cl, vp))) {
                        mutex_exit(vp->v_interlock);
                        vp = TAILQ_NEXT(vp, v_mntvnodes);



Home | Main Index | Thread Index | Old Index