From e92b4e27e5c13e3fc503bb26a96ca229d7a4749e 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- lustre/llite/statahead.c | 1 + 1 file changed, 1 insertion(+) 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); -- 1.8.3.1