Whamcloud - gitweb
I don't much like crashing
authorpschwan <pschwan>
Thu, 26 Sep 2002 17:55:55 +0000 (17:55 +0000)
committerpschwan <pschwan>
Thu, 26 Sep 2002 17:55:55 +0000 (17:55 +0000)
lustre/ldlm/ldlm_request.c

index ecbf98a..87e5f0b 100644 (file)
@@ -23,7 +23,12 @@ static int interrupted_completion_wait(void *data)
 static int expired_completion_wait(void *data)
 {
         struct ldlm_lock *lock = data;
-        class_signal_connection_failure(lock->l_export->exp_connection);
+        if (!lock)
+                CERROR("NULL lock\n");
+        else if (!lock->l_export)
+                CERROR("lock %p has NULL export\n", lock);
+        else
+                class_signal_connection_failure(lock->l_export->exp_connection);
         RETURN(0);
 }