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
This commit is contained in:
Kris Kennaway 2005-10-16 21:45:25 +00:00
parent d31c91fbcf
commit 3554cddbfa

View File

@ -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);