Whamcloud - gitweb
One last fix from yesterday, for forced DLM cleanup after network timeouts
authorpschwan <pschwan>
Fri, 26 Jul 2002 18:54:59 +0000 (18:54 +0000)
committerpschwan <pschwan>
Fri, 26 Jul 2002 18:54:59 +0000 (18:54 +0000)
lustre/ldlm/ldlm_resource.c

index 7012ccc..fcfca26 100644 (file)
@@ -80,7 +80,7 @@ static void cleanup_resource(struct ldlm_resource *res, struct list_head *q)
                         ldlm_lock2handle(lock, &lockh);
                         /* can we get away without a connh here? */
                         rc = ldlm_cli_cancel(&lockh);
-                        if (rc < 0) {
+                        if (rc != ELDLM_OK) {
                                 /* It failed remotely, but we'll force it to
                                  * cleanup locally. */
                                 CERROR("ldlm_cli_cancel: %d\n", rc);