Whamcloud - gitweb
LU-5289 mdc: cleanup intent if mdc_finish_enqueue() fails
[fs/lustre-release.git] / 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);
 }