From fa8ac582282505203d00979e1f89505ee3e59cc3 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 16 Oct 2005 21:45:25 +0000 Subject: Reflect mpsafety of the underlying filesystem in the nullfs image. I benchmarked this by simultaneously extracting 4 large tarballs (basically world images) on a 4-processor AMD64 system, in a malloc-backed md. With this patch, system time was reduced by 43%, and wall clock time by 33%. Submitted by: jeff MFC after: 1 week --- sys/fs/nullfs/null_vfsops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/fs') diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index 38f0f55..2d3ac6e 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -180,6 +180,7 @@ nullfs_mount(struct mount *mp, struct thread *td) if (NULLVPTOLOWERVP(nullm_rootvp)->v_mount->mnt_flag & MNT_LOCAL) mp->mnt_flag |= MNT_LOCAL; + mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag | MNTK_MPSAFE; mp->mnt_data = (qaddr_t) xmp; vfs_getnewfsid(mp); -- cgit v1.1