[lustre-devel] [PATCH 040/622] lustre: llite: decrease sa_running if fail to start statahead
James Simmons
jsimmons at infradead.org
Thu Feb 27 13:08:28 PST 2020
From: Fan Yong <fan.yong at intel.com>
Otherwise the counter of ll_sb_info::ll_sa_running will leak as
to the umount process will be blocked for ever.
WC-bug-id: https://jira.whamcloud.com/browse/LU-10992
Lustre-commit: 6b8638bf7920 ("LU-10992 llite: decrease sa_running if fail to start statahead")
Signed-off-by: Fan Yong <fan.yong at intel.com>
Reviewed-on: https://review.whamcloud.com/32287
Reviewed-by: Lai Siyao <lai.siyao at whamcloud.com>
Reviewed-by: Bobi Jam <bobijam at hotmail.com>
Reviewed-by: Andreas Dilger <adilger at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
fs/lustre/llite/statahead.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/lustre/llite/statahead.c b/fs/lustre/llite/statahead.c
index 4a61dac..122b9d8 100644
--- a/fs/lustre/llite/statahead.c
+++ b/fs/lustre/llite/statahead.c
@@ -1566,6 +1566,7 @@ static int start_statahead_thread(struct inode *dir, struct dentry *dentry)
spin_lock(&lli->lli_sa_lock);
lli->lli_sai = NULL;
spin_unlock(&lli->lli_sa_lock);
+ atomic_dec(&ll_i2sbi(parent->d_inode)->ll_sa_running);
rc = PTR_ERR(task);
CERROR("can't start ll_sa thread, rc : %d\n", rc);
goto out;
--
1.8.3.1
More information about the lustre-devel
mailing list