summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-02-29 15:18:53 +0000
committerkib <kib@FreeBSD.org>2012-02-29 15:18:53 +0000
commit3f374b0489be09aedaf7ae0ad2ceddca2664464f (patch)
tree9c563cb51ed7446f8a6c5d9ba899333851e38b86 /sys/fs
parent9ea303ddb816e8ac84f71251736e7cebeabd3b33 (diff)
downloadFreeBSD-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/fs')
-rw-r--r--sys/fs/nullfs/null_vfsops.c3
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);
OpenPOWER on IntegriCloud