From nobody Fri Jan 20 03:24:01 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NylG954c1z30vpd; Fri, 20 Jan 2023 03:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NylG92ZKxz3pMj; Fri, 20 Jan 2023 03:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674185041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T1LQVm2Ts+HzcN4C9OL9fQTcQ1xSofDUMSTliIrP2lM=; b=U8Vth8TK5s0QHjjjwh+AO36AK2q68yzjDi4db/EWUH20/ruiWXievJIsZqHr8rPFFKXDHx jmMw7vEMAxyRUUMJhIH1fssx3UMgeEc+6C3xqHjaS4Dz88Er+lHQ+o1OU1dwLExnRk5aLT eHbc4p1W1RDYh3zvxQS4GaI9UnBImWtTOFXuxyqmrTKTNG2c2WLv8Q596PGZXH9fC5EKYj Mkenmpsh0KTQG8bKfbCY67NWvHAyWTUyeAIHiwpgTHPbY7FZiJ1JeRp7fsXVgP237fqR7v +ybOYYET5/msc4LlnAvZaowPiJWxU++UZaZP1UZc0CyM9DQkoX1TZSeCG8ciwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674185041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T1LQVm2Ts+HzcN4C9OL9fQTcQ1xSofDUMSTliIrP2lM=; b=BzUjRaJxswMalGx3KwQBeicL62rjzlnzZgC6FPv9oD1k3D+4b8Cm/EP6i/6I8ORgU742MI QQkVGD69al7HG37A5twITzFQBwipf6iThLmoxtgAvNBQzShtlv1nxu+evz00HOOVeiKN7i LvvEMqB9QMYeC9HuBmsmvu0t5yVc1xLb8fvcAqvzLi3B4pxLpM667q/hrtFTFCuSZt7v3B gJixr6y5f35eWk8umRNQOGFS7KpqnX10MdEnWL69J3ZgfWSyKrwefwPraLANVQGPP5DxVC 5h/ba2t+ogMsX7Fz9JkX/lkgLTEAVRRHwEBCFRzLyQ3ecU+VTTOK4i78Ure9Wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674185041; a=rsa-sha256; cv=none; b=MVB2TAyvV7+3aeEhtWmy+PG4OV8wV17ZW32ORflKFixt8KQ1CP4Enb16dCfO1asv80heZV A9jjdsyw7uA+whPPmV//h5EGqTyhdiHIcOAnrGkl10C/kU3PoA/KDA8COdfzNoR+pRoTDy Y24xC5SIVsQtmmTp2RFnO/koAyjA5JVJSDPfb1De2WNejSH+lW7MZa8iu2wU95hEzcfNrN 8RHE5BUt0LCamIqT5FwEpo3cY1gxfWyyKQsgTCvcEDQ7a8N725oLS38+MiNIG6jZlG7uiY s3EeaFwmUrRwRb1pSgslM+Q235p+S5yJIlEqB4VkPNlXa3bRBjiEFzywCzxW7A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NylG91h5TzFyw; Fri, 20 Jan 2023 03:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30K3O1SI042954; Fri, 20 Jan 2023 03:24:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30K3O1jp042953; Fri, 20 Jan 2023 03:24:01 GMT (envelope-from git) Date: Fri, 20 Jan 2023 03:24:01 GMT Message-Id: <202301200324.30K3O1jp042953@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 9b9f054e7398 - stable/13 - Stop cleaning MNT_LOCAL on unmount List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 9b9f054e739887d18f2f5985d91ba5b954ad4a6a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9b9f054e739887d18f2f5985d91ba5b954ad4a6a commit 9b9f054e739887d18f2f5985d91ba5b954ad4a6a Author: Konstantin Belousov AuthorDate: 2023-01-06 16:38:44 +0000 Commit: Konstantin Belousov CommitDate: 2023-01-20 03:22:32 +0000 Stop cleaning MNT_LOCAL on unmount Tested by: pho (cherry picked from commit 1d9f3a37eb20305bfdd67788cfac5c51938226a4) --- sys/fs/cd9660/cd9660_vfsops.c | 3 --- sys/fs/ext2fs/ext2_vfsops.c | 3 --- sys/fs/msdosfs/msdosfs_vfsops.c | 3 --- sys/fs/smbfs/smbfs_vfsops.c | 3 --- sys/fs/tmpfs/tmpfs_vfsops.c | 4 ---- sys/fs/udf/udf_vfsops.c | 4 ---- sys/ufs/ffs/ffs_vfsops.c | 3 --- 7 files changed, 23 deletions(-) diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c index 5d475bec93b8..6fd89be0f8c8 100644 --- a/sys/fs/cd9660/cd9660_vfsops.c +++ b/sys/fs/cd9660/cd9660_vfsops.c @@ -527,9 +527,6 @@ cd9660_unmount(mp, mntflags) dev_rel(isomp->im_dev); free(isomp, M_ISOFSMNT); mp->mnt_data = NULL; - MNT_ILOCK(mp); - mp->mnt_flag &= ~MNT_LOCAL; - MNT_IUNLOCK(mp); return (error); } diff --git a/sys/fs/ext2fs/ext2_vfsops.c b/sys/fs/ext2fs/ext2_vfsops.c index 74a7a08128b4..e35b989c285b 100644 --- a/sys/fs/ext2fs/ext2_vfsops.c +++ b/sys/fs/ext2fs/ext2_vfsops.c @@ -1056,9 +1056,6 @@ ext2_unmount(struct mount *mp, int mntflags) free(fs, M_EXT2MNT); free(ump, M_EXT2MNT); mp->mnt_data = NULL; - MNT_ILOCK(mp); - mp->mnt_flag &= ~MNT_LOCAL; - MNT_IUNLOCK(mp); return (error); } diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index cbfb0aead8b7..d7efa103581b 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -872,9 +872,6 @@ msdosfs_unmount(struct mount *mp, int mntflags) lockdestroy(&pmp->pm_checkpath_lock); free(pmp, M_MSDOSFSMNT); mp->mnt_data = NULL; - MNT_ILOCK(mp); - mp->mnt_flag &= ~MNT_LOCAL; - MNT_IUNLOCK(mp); return (error); } diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index d19816a7869c..c27b62693d7a 100644 --- a/sys/fs/smbfs/smbfs_vfsops.c +++ b/sys/fs/smbfs/smbfs_vfsops.c @@ -299,9 +299,6 @@ smbfs_unmount(struct mount *mp, int mntflags) mp->mnt_data = NULL; SMB_UNLOCK(); free(smp, M_SMBFSDATA); - MNT_ILOCK(mp); - mp->mnt_flag &= ~MNT_LOCAL; - MNT_IUNLOCK(mp); out: smbfs_free_scred(scred); return error; diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index 19d67b79c2e3..883cdd060ce6 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -536,10 +536,6 @@ tmpfs_unmount(struct mount *mp, int mntflags) tmpfs_free_tmp(tmp); vfs_write_resume(mp, VR_START_WRITE); - MNT_ILOCK(mp); - mp->mnt_flag &= ~MNT_LOCAL; - MNT_IUNLOCK(mp); - return (0); } diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c index 132f4e7703d7..502d927ac0fe 100644 --- a/sys/fs/udf/udf_vfsops.c +++ b/sys/fs/udf/udf_vfsops.c @@ -542,10 +542,6 @@ udf_unmount(struct mount *mp, int mntflags) free(udfmp, M_UDFMOUNT); mp->mnt_data = NULL; - MNT_ILOCK(mp); - mp->mnt_flag &= ~MNT_LOCAL; - MNT_IUNLOCK(mp); - return (0); } diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 754a6bedee13..8e719516b9ce 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1482,9 +1482,6 @@ ffs_unmount(struct mount *mp, int mntflags) free(ump->um_fsfail_task, M_UFSMNT); free(ump, M_UFSMNT); mp->mnt_data = NULL; - MNT_ILOCK(mp); - mp->mnt_flag &= ~MNT_LOCAL; - MNT_IUNLOCK(mp); if (td->td_su == mp) { td->td_su = NULL; vfs_rel(mp);