Source-Changes-HG archive

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

[src/trunk]: src/sys/kern lookup_fastforward(): failure to vget foundobj vnod...



details:   https://anonhg.NetBSD.org/src/rev/011f533dd4eb
branches:  trunk
changeset: 1008988:011f533dd4eb
user:      ad <ad%NetBSD.org@localhost>
date:      Tue Apr 07 19:17:50 2020 +0000

description:
lookup_fastforward(): failure to vget foundobj vnode also translates into
EOPNOTSUPP; VOP_LOOKUP() should retry it.

diffstat:

 sys/kern/vfs_lookup.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2603b0e07739 -r 011f533dd4eb sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c     Tue Apr 07 19:15:23 2020 +0000
+++ b/sys/kern/vfs_lookup.c     Tue Apr 07 19:17:50 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_lookup.c,v 1.216 2020/04/07 18:28:31 ad Exp $      */
+/*     $NetBSD: vfs_lookup.c,v 1.217 2020/04/07 19:17:50 ad Exp $      */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.216 2020/04/07 18:28:31 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.217 2020/04/07 19:17:50 ad Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_magiclinks.h"
@@ -1351,6 +1351,7 @@
                        /* v_interlock now unheld */
                        if (error != 0) {
                                foundobj = NULL;
+                               error = EOPNOTSUPP;
                        }
                        break;
                }



Home | Main Index | Thread Index | Old Index