From 3b115002a75a501c7741879b48ba8273c83d5c76 Mon Sep 17 00:00:00 2001 From: pschwan Date: Wed, 17 Jul 2002 18:47:59 +0000 Subject: [PATCH] - Attempted fix for the crash-during-unload-after-ldlm-test bug --- lustre/ldlm/ldlm_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/ldlm/ldlm_test.c b/lustre/ldlm/ldlm_test.c index 61c3224..8cd970a 100644 --- a/lustre/ldlm/ldlm_test.c +++ b/lustre/ldlm/ldlm_test.c @@ -177,6 +177,8 @@ static int ldlm_test_network(struct obd_device *obddev, &ext, sizeof(ext), LCK_PR, &flags, NULL, NULL, 0, &lockh1); CERROR("ldlm_cli_enqueue: %d\n", err); + if (err == ELDLM_OK) + ldlm_lock_decref(&lockh1, LCK_PR); RETURN(err); } -- 1.8.3.1