Module Name:    src
Committed By:   hannken
Date:           Fri Feb  4 15:33:57 UTC 2022

Modified Files:
        src/sys/kern: vfs_mount.c

Log Message:
Stop clearing "v_mountedhere" in mount_domount() error path.

We did not set it and may clear the value from another mount.


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sys/kern/vfs_mount.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_mount.c
diff -u src/sys/kern/vfs_mount.c:1.86 src/sys/kern/vfs_mount.c:1.87
--- src/sys/kern/vfs_mount.c:1.86	Tue Feb 16 09:56:32 2021
+++ src/sys/kern/vfs_mount.c	Fri Feb  4 15:33:57 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_mount.c,v 1.86 2021/02/16 09:56:32 hannken Exp $	*/
+/*	$NetBSD: vfs_mount.c,v 1.87 2022/02/04 15:33:57 hannken Exp $	*/
 
 /*-
  * Copyright (c) 1997-2020 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.86 2021/02/16 09:56:32 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.87 2022/02/04 15:33:57 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -846,7 +846,6 @@ err_mounted:
 		vfs_resume(mp);
 
 err_unmounted:
-	vp->v_mountedhere = NULL;
 	mutex_exit(mp->mnt_updating);
 	vfs_rele(mp);
 

Reply via email to