Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/nullfs Set IMNT_MPSAFE only if the lower layer ha...



details:   https://anonhg.NetBSD.org/src/rev/8a5129ee5489
branches:  trunk
changeset: 373371:8a5129ee5489
user:      hannken <hannken%NetBSD.org@localhost>
date:      Mon Feb 06 10:32:58 2023 +0000

description:
Set IMNT_MPSAFE only if the lower layer has it set.

diffstat:

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

diffs (27 lines):

diff -r 7a396adf9d9c -r 8a5129ee5489 sys/miscfs/nullfs/null_vfsops.c
--- a/sys/miscfs/nullfs/null_vfsops.c   Sun Feb 05 22:42:39 2023 +0000
+++ b/sys/miscfs/nullfs/null_vfsops.c   Mon Feb 06 10:32:58 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: null_vfsops.c,v 1.100 2022/11/04 11:20:39 hannken Exp $        */
+/*     $NetBSD: null_vfsops.c,v 1.101 2023/02/06 10:32:58 hannken Exp $        */
 
 /*
  * Copyright (c) 1999 National Aeronautics & Space Administration
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: null_vfsops.c,v 1.100 2022/11/04 11:20:39 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: null_vfsops.c,v 1.101 2023/02/06 10:32:58 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -138,7 +138,7 @@
        /* Create the mount point. */
        nmp = kmem_zalloc(sizeof(struct null_mount), KM_SLEEP);
        mp->mnt_data = nmp;
-       mp->mnt_iflag |= IMNT_MPSAFE;
+       mp->mnt_iflag |= lowerrootvp->v_mount->mnt_iflag & IMNT_MPSAFE;
        mp->mnt_iflag |= lowerrootvp->v_mount->mnt_iflag & IMNT_SHRLOOKUP;
 
        /*



Home | Main Index | Thread Index | Old Index