Whamcloud - gitweb
- Attempted fix for the crash-during-unload-after-ldlm-test bug
authorpschwan <pschwan>
Wed, 17 Jul 2002 18:47:59 +0000 (18:47 +0000)
committerpschwan <pschwan>
Wed, 17 Jul 2002 18:47:59 +0000 (18:47 +0000)
lustre/ldlm/ldlm_test.c

index 61c3224..8cd970a 100644 (file)
@@ -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);
 }