From: Fan Yong Date: Fri, 4 May 2018 02:18:26 +0000 (+0800) Subject: LU-10992 llite: decrease sa_running if fail to start statahead X-Git-Tag: 2.11.52~13 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6b8638bf792086d9e4b249e95091095bba4ada02;p=fs%2Flustre-release.git 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 --- 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);