Whamcloud - gitweb
LU-5289 mdc: cleanup intent if mdc_finish_enqueue() fails 63/10963/2
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 3 Jul 2014 16:00:11 +0000 (11:00 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 8 Jul 2014 15:56:04 +0000 (15:56 +0000)
In mdc_enqueue() clear the lock handle, lock mode, and request stored
in the lookup intent if mdc_finish_enqueue() fails.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I233588ab13df86be509a9763e00697d29dee1c7c
Reviewed-on: http://review.whamcloud.com/10963
Tested-by: Jenkins
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdc/mdc_locks.c

index 2d3d171..95201c4 100644 (file)
@@ -939,7 +939,12 @@ resend:
                        memset(lockh, 0, sizeof(*lockh));
                }
                ptlrpc_req_finished(req);
+
+               it->d.lustre.it_lock_handle = 0;
+               it->d.lustre.it_lock_mode = 0;
+               it->d.lustre.it_data = NULL;
        }
+
        RETURN(rc);
 }