Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/overlay Don't use LK_RETRY as we need an active v...



details:   https://anonhg.NetBSD.org/src/rev/e544011dc81e
branches:  trunk
changeset: 368378:e544011dc81e
user:      hannken <hannken%NetBSD.org@localhost>
date:      Fri Jul 08 07:43:48 2022 +0000

description:
Don't use LK_RETRY as we need an active vnode here.

diffstat:

 sys/miscfs/overlay/overlay_vfsops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1588e49325be -r e544011dc81e sys/miscfs/overlay/overlay_vfsops.c
--- a/sys/miscfs/overlay/overlay_vfsops.c       Fri Jul 08 07:43:19 2022 +0000
+++ b/sys/miscfs/overlay/overlay_vfsops.c       Fri Jul 08 07:43:48 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: overlay_vfsops.c,v 1.71 2020/04/13 19:23:19 ad Exp $   */
+/*     $NetBSD: overlay_vfsops.c,v 1.72 2022/07/08 07:43:48 hannken Exp $      */
 
 /*
  * Copyright (c) 1999, 2000 National Aeronautics & Space Administration
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: overlay_vfsops.c,v 1.71 2020/04/13 19:23:19 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: overlay_vfsops.c,v 1.72 2022/07/08 07:43:48 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -136,7 +136,7 @@
         */
        lowerrootvp = mp->mnt_vnodecovered;
        vref(lowerrootvp);
-       if ((error = vn_lock(lowerrootvp, LK_EXCLUSIVE | LK_RETRY))) {
+       if ((error = vn_lock(lowerrootvp, LK_EXCLUSIVE))) {
                vrele(lowerrootvp);
                return (error);
        }



Home | Main Index | Thread Index | Old Index