Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/miscfs/nullfs Pull up following revision(s) (requeste...



details:   https://anonhg.NetBSD.org/src/rev/11f6572fc1bf
branches:  netbsd-8
changeset: 852696:11f6572fc1bf
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Dec 24 17:15:47 2019 +0000

description:
Pull up following revision(s) (requested by hannken in ticket #1476):

        sys/miscfs/nullfs/null_vfsops.c: revision 1.96

Set IMNT_MPSAFE before creating the vnode for the root of the
filesystem. Otherwise, it won't be created with VV_MPSAFE and require
the kernel_lock.

diffstat:

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

diffs (34 lines):

diff -r 0ed6f1d0e9f9 -r 11f6572fc1bf sys/miscfs/nullfs/null_vfsops.c
--- a/sys/miscfs/nullfs/null_vfsops.c   Tue Dec 17 16:20:28 2019 +0000
+++ b/sys/miscfs/nullfs/null_vfsops.c   Tue Dec 24 17:15:47 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: null_vfsops.c,v 1.94 2017/04/11 07:51:37 hannken Exp $ */
+/*     $NetBSD: null_vfsops.c,v 1.94.4.1 2019/12/24 17:15:47 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.94 2017/04/11 07:51:37 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: null_vfsops.c,v 1.94.4.1 2019/12/24 17:15:47 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -140,6 +140,7 @@
        /* Create the mount point. */
        nmp = kmem_zalloc(sizeof(struct null_mount), KM_SLEEP);
        mp->mnt_data = nmp;
+       mp->mnt_iflag |= IMNT_MPSAFE;
 
        /*
         * Make sure that the mount point is sufficiently initialized
@@ -167,7 +168,6 @@
        vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
        vp->v_vflag |= VV_ROOT;
        nmp->nullm_rootvp = vp;
-       mp->mnt_iflag |= IMNT_MPSAFE;
        VOP_UNLOCK(vp);
 
        error = set_statvfs_info(path, UIO_USERSPACE, args->la.target,



Home | Main Index | Thread Index | Old Index