[Devel] [PATCH RH8] Revert "fs/nfs: don't use delayed unmount for nfs."

Vasily Averin vvs at virtuozzo.com
Mon Jun 7 13:05:02 MSK 2021


This reverts commit d7ab92b772a59be999ca44df8871a0306f1a51a3.

Reverted due to https://jira.sw.ru/browse/PSBM-130309
Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
---
 fs/namespace.c     | 3 +--
 fs/nfs/super.c     | 1 -
 include/linux/fs.h | 1 -
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/fs/namespace.c b/fs/namespace.c
index feee87d3c89a..02cbb14350df 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1204,8 +1204,7 @@ static void mntput_no_expire(struct mount *mnt)
 	}
 	unlock_mount_hash();
 
-	if (likely(!(mnt->mnt.mnt_flags & MNT_INTERNAL))
-	    && !(mnt->mnt.mnt_sb->s_iflags & SB_I_UMOUNT_SYNC)) {
+	if (likely(!(mnt->mnt.mnt_flags & MNT_INTERNAL))) {
 		struct task_struct *task = current;
 		if (likely(!(task->flags & PF_KTHREAD))) {
 			init_task_work(&mnt->mnt_rcu, __cleanup_mnt);
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index ec023ddea295..f8cc797c162a 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2488,7 +2488,6 @@ static int nfs_set_super(struct super_block *s, void *data)
 	int ret;
 
 	s->s_flags = sb_mntdata->mntflags;
-	s->s_iflags |= SB_I_UMOUNT_SYNC;
 	s->s_fs_info = server;
 	s->s_d_op = server->nfs_client->rpc_ops->dentry_ops;
 	ret = set_anon_super(s, server);
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 654b73c520a8..0a54b95dc1b4 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1362,7 +1362,6 @@ extern int send_sigurg(struct fown_struct *fown);
 #define SB_I_IMA_UNVERIFIABLE_SIGNATURE	0x00000020
 #define SB_I_UNTRUSTED_MOUNTER		0x00000040
 
-#define SB_I_UMOUNT_SYNC		0x10000000 /* don't use delayed unmount */
 extern struct list_head super_blocks;
 extern spinlock_t sb_lock;
 
-- 
2.25.1



More information about the Devel mailing list