Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-10]: src/sys Pull up following revision(s) (requested by hannken ...
details: https://anonhg.NetBSD.org/src/rev/75f37548de02
branches: netbsd-10
changeset: 373385:75f37548de02
user: martin <martin%NetBSD.org@localhost>
date: Mon Feb 06 16:57:24 2023 +0000
description:
Pull up following revision(s) (requested by hannken in ticket #68):
sys/fs/union/union_vfsops.c: revision 1.86
sys/miscfs/nullfs/null_vfsops.c: revision 1.101
Set IMNT_MPSAFE only if all lower layers have it set.
diffstat:
sys/fs/union/union_vfsops.c | 13 ++++++++++---
sys/miscfs/nullfs/null_vfsops.c | 6 +++---
2 files changed, 13 insertions(+), 6 deletions(-)
diffs (61 lines):
diff -r 3125c047bcff -r 75f37548de02 sys/fs/union/union_vfsops.c
--- a/sys/fs/union/union_vfsops.c Mon Feb 06 16:53:34 2023 +0000
+++ b/sys/fs/union/union_vfsops.c Mon Feb 06 16:57:24 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: union_vfsops.c,v 1.85 2022/11/21 10:37:14 hannken Exp $ */
+/* $NetBSD: union_vfsops.c,v 1.85.2.1 2023/02/06 16:57:24 martin Exp $ */
/*
* Copyright (c) 1994 The Regents of the University of California.
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: union_vfsops.c,v 1.85 2022/11/21 10:37:14 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: union_vfsops.c,v 1.85.2.1 2023/02/06 16:57:24 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -198,7 +198,14 @@
goto bad;
}
- mp->mnt_iflag |= IMNT_MPSAFE;
+ /*
+ * This mount is mp-safe if both lower mounts are mp-safe.
+ */
+
+ if (((um->um_lowervp == NULLVP) ||
+ (um->um_lowervp->v_mount->mnt_iflag & IMNT_MPSAFE)) &&
+ (um->um_uppervp->v_mount->mnt_iflag & IMNT_MPSAFE))
+ mp->mnt_iflag |= IMNT_MPSAFE;
/*
* Unless the mount is readonly, ensure that the top layer
diff -r 3125c047bcff -r 75f37548de02 sys/miscfs/nullfs/null_vfsops.c
--- a/sys/miscfs/nullfs/null_vfsops.c Mon Feb 06 16:53:34 2023 +0000
+++ b/sys/miscfs/nullfs/null_vfsops.c Mon Feb 06 16:57:24 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.100.2.1 2023/02/06 16:57:24 martin 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.100.2.1 2023/02/06 16:57:24 martin 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