diff options
author | kib <kib@FreeBSD.org> | 2012-02-29 15:18:53 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-02-29 15:18:53 +0000 |
commit | 3f374b0489be09aedaf7ae0ad2ceddca2664464f (patch) | |
tree | 9c563cb51ed7446f8a6c5d9ba899333851e38b86 /sys | |
parent | 9ea303ddb816e8ac84f71251736e7cebeabd3b33 (diff) | |
download | FreeBSD-src-3f374b0489be09aedaf7ae0ad2ceddca2664464f.zip FreeBSD-src-3f374b0489be09aedaf7ae0ad2ceddca2664464f.tar.gz |
Allow shared locks for reads when lower filesystem accept shared locking.
Tested by: pho
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/nullfs/null_vfsops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index 414d2e3..0d70f93 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -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); |