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.10.5-RC1~6 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e92b4e27e5c13e3fc503bb26a96ca229d7a4749e;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. Lustre-change: https://review.whamcloud.com/32287 Lustre-commit:◁6b8638bf792086d9e4b249e95091095bba4ada02 Signed-off-by: Fan Yong Change-Id: I6b3a0dfb39f120a0c58184a22211b52376b41bd9 Reviewed-by: Lai Siyao Reviewed-by: Bobi Jam Reviewed-by: Andreas Dilger Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/32526 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond --- diff --git a/lustre/llite/statahead.c b/lustre/llite/statahead.c index 69f701e..5d961c2 100644 --- a/lustre/llite/statahead.c +++ b/lustre/llite/statahead.c @@ -1590,6 +1590,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);