diff options
author | mjg <mjg@FreeBSD.org> | 2014-10-20 18:00:50 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2014-10-20 18:00:50 +0000 |
commit | 12e0034dd069b0f2d2b0cf11d216afbe99094438 (patch) | |
tree | e51e6a7989eefd8dc56ac47c5d0db6b3380c4a81 /sys/fs/nullfs | |
parent | d6c735be7798e52e8a242ae20504aa525caf1b00 (diff) | |
download | FreeBSD-src-12e0034dd069b0f2d2b0cf11d216afbe99094438.zip FreeBSD-src-12e0034dd069b0f2d2b0cf11d216afbe99094438.tar.gz |
Provide vfs suspension support only for filesystems which need it, take
two.
nullfs and unionfs need to request suspension if underlying filesystem(s)
use it. Utilize mnt_kern_flag for this purpose.
This is a fixup for 273271.
No strong objections from: kib
Pointy hat to: mjg
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nullfs')
-rw-r--r-- | sys/fs/nullfs/null_vfsops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index 80824a5..fd3d385 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -198,6 +198,8 @@ nullfs_mount(struct mount *mp) MNTK_EXTENDED_SHARED); } mp->mnt_kern_flag |= MNTK_LOOKUP_EXCL_DOTDOT; + mp->mnt_kern_flag |= lowerrootvp->v_mount->mnt_kern_flag & + MNTK_SUSPENDABLE; MNT_IUNLOCK(mp); mp->mnt_data = xmp; vfs_getnewfsid(mp); |