From 79165939172df8c608dd2cb134da1ef7911aaf4b Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Thu, 3 Jul 2014 11:00:11 -0500 Subject: [PATCH] LU-5289 mdc: cleanup intent if mdc_finish_enqueue() fails 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 Change-Id: I233588ab13df86be509a9763e00697d29dee1c7c Reviewed-on: http://review.whamcloud.com/10963 Tested-by: Jenkins Reviewed-by: Oleg Drokin Reviewed-by: Lai Siyao Tested-by: Maloo --- lustre/mdc/mdc_locks.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre/mdc/mdc_locks.c b/lustre/mdc/mdc_locks.c index 2d3d171..95201c4 100644 --- a/lustre/mdc/mdc_locks.c +++ b/lustre/mdc/mdc_locks.c @@ -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); } -- 1.8.3.1