Date: Fri, 17 Apr 2020 01:52:27 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r360030 - stable/11/sys/ufs/ffs Message-ID: <202004170152.03H1qRdC008576@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004170152.03H1qRdC008576>