Whamcloud - gitweb
LU-10992 llite: decrease sa_running if fail to start statahead
[fs/lustre-release.git] / lustre / llite / statahead.c
index 2da5070..1c98b8c 100644 (file)
@@ -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);