From: Nathaniel Clark Date: Fri, 28 Mar 2014 13:03:23 +0000 (-0400) Subject: LU-4826 lmv: Ensure lmv_intent_lookup cleans up reqp X-Git-Tag: 2.5.58~35 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F41%2F9841%2F2;p=fs%2Flustre-release.git LU-4826 lmv: Ensure lmv_intent_lookup cleans up reqp Ensure there aren't invalid pointers hanging around after ptlrpc_req_finished is called. Signed-off-by: Nathaniel Clark Change-Id: Ieb16e70958d899a2d9320491dfd6276143accc55 Reviewed-on: http://review.whamcloud.com/9841 Reviewed-by: John L. Hammond Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: Oleg Drokin --- diff --git a/lustre/lmv/lmv_intent.c b/lustre/lmv/lmv_intent.c index 1d8e927..74cf0a1 100644 --- a/lustre/lmv/lmv_intent.c +++ b/lustre/lmv/lmv_intent.c @@ -485,6 +485,9 @@ int lmv_intent_lookup(struct obd_export *exp, struct md_op_data *op_data, RETURN(PTR_ERR(tgt)); ptlrpc_req_finished(*reqp); + it->d.lustre.it_data = NULL; + *reqp = NULL; + CDEBUG(D_INODE, "For migrating dir, try target dir "DFID"\n", PFID(&lsm->lsm_md_oinfo[1].lmo_fid));