svn commit: r360030 - stable/11/sys/ufs/ffs
Konstantin Belousov
kib at FreeBSD.org
Fri Apr 17 01:52:28 UTC 2020
Author: kib
Date: Fri Apr 17 01:52:27 2020
New Revision: 360030
URL: https://svnweb.freebsd.org/changeset/base/360030
Log:
MFC r359766:
ufs: apply suspension for non-forced rw unmounts.
Modified:
stable/11/sys/ufs/ffs/ffs_vfsops.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/ufs/ffs/ffs_vfsops.c
==============================================================================
--- stable/11/sys/ufs/ffs/ffs_vfsops.c Fri Apr 17 01:06:51 2020 (r360029)
+++ stable/11/sys/ufs/ffs/ffs_vfsops.c Fri Apr 17 01:52:27 2020 (r360030)
@@ -1252,11 +1252,9 @@ ffs_unmount(mp, mntflags)
flags = 0;
td = curthread;
fs = ump->um_fs;
- susp = 0;
- if (mntflags & MNT_FORCE) {
+ if (mntflags & MNT_FORCE)
flags |= FORCECLOSE;
- susp = fs->fs_ronly == 0;
- }
+ susp = fs->fs_ronly == 0;
#ifdef UFS_EXTATTR
if ((error = ufs_extattr_stop(mp, td))) {
if (error != EOPNOTSUPP)
More information about the svn-src-stable-11
mailing list