From: John L. Hammond Date: Sun, 18 Sep 2016 20:37:40 +0000 (-0400) Subject: staging: lustre: llite: don't call make_bad_inode() on an old inode X-Git-Tag: v4.9-rc1~119^2~462 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=960a7e37f41e3f8bd3f974bef555991fe5cd3611;p=karo-tx-linux.git staging: lustre: llite: don't call make_bad_inode() on an old inode In ll_iget() if ll_update_inode() fails then do not call make_bad_inode() on the inode since it may still be in use. Signed-off-by: John L. Hammond Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5468 Reviewed-on: http://review.whamcloud.com/11609 Reviewed-by: Lai Siyao Reviewed-by: Fan Yong Reviewed-by: Oleg Drokin Signed-off-by: James Simmons Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/llite/namei.c b/drivers/staging/lustre/lustre/llite/namei.c index e2dc920bc957..85f8ce7fc384 100644 --- a/drivers/staging/lustre/lustre/llite/namei.c +++ b/drivers/staging/lustre/lustre/llite/namei.c @@ -132,7 +132,6 @@ struct inode *ll_iget(struct super_block *sb, ino_t hash, CDEBUG(D_VFSTRACE, "got inode: "DFID"(%p): rc = %d\n", PFID(&md->body->mbo_fid1), inode, rc); if (rc) { - make_bad_inode(inode); iput(inode); inode = ERR_PTR(rc); }