From 6b8638bf792086d9e4b249e95091095bba4ada02 Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Fri, 4 May 2018 10:18:26 +0800 Subject: [PATCH] LU-10992 llite: decrease sa_running if fail to start statahead Otherwise the counter of ll_sb_info::ll_sa_running will leak as to the umount process will be blocked for ever. Signed-off-by: Fan Yong Change-Id: I6b3a0dfb39f120a0c58184a22211b52376b41bd9 Reviewed-on: https://review.whamcloud.com/32287 Tested-by: Jenkins Reviewed-by: Lai Siyao Reviewed-by: Bobi Jam Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/llite/statahead.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/llite/statahead.c b/lustre/llite/statahead.c index 2da5070..1c98b8c 100644 --- a/lustre/llite/statahead.c +++ b/lustre/llite/statahead.c @@ -1594,6 +1594,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, rc); -- 1.8.3.1