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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to