From 75ee8334498f948ecd030ad5edb22bc596f300fc Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Fri, 28 Mar 2014 09:03:23 -0400 Subject: [PATCH] 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 --- lustre/lmv/lmv_intent.c | 3 +++ 1 file changed, 3 insertions(+) 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)); -- 1.8.3.1