1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Allow shared locks for reads when lower filesystem accept shared locking.

Tested by:	pho
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2012-02-29 15:18:53 +00:00
parent cec1d07726
commit 37a1046e61
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232305

View File

@ -185,7 +185,8 @@ nullfs_mount(struct mount *mp)
MNT_IUNLOCK(mp);
}
MNT_ILOCK(mp);
mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag & MNTK_MPSAFE;
mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag &
(MNTK_MPSAFE | MNTK_SHARED_WRITES);
MNT_IUNLOCK(mp);
mp->mnt_data = xmp;
vfs_getnewfsid(mp);