From: pschwan Date: Wed, 17 Jul 2002 18:47:59 +0000 (+0000) Subject: - Attempted fix for the crash-during-unload-after-ldlm-test bug X-Git-Tag: v1_7_100~5290 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3b115002a75a501c7741879b48ba8273c83d5c76;p=fs%2Flustre-release.git - Attempted fix for the crash-during-unload-after-ldlm-test bug --- 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); }