Whamcloud - gitweb
LU-4826 lmv: Ensure lmv_intent_lookup cleans up reqp 41/9841/2
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Fri, 28 Mar 2014 13:03:23 +0000 (09:03 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 4 Apr 2014 03:29:27 +0000 (03:29 +0000)
Ensure there aren't invalid pointers hanging around after
ptlrpc_req_finished is called.

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: Ieb16e70958d899a2d9320491dfd6276143accc55
Reviewed-on: http://review.whamcloud.com/9841
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lmv/lmv_intent.c

index 1d8e927..74cf0a1 100644 (file)
@@ -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));