From 952320c4936481c930254c138cfb73686cec77b8 Mon Sep 17 00:00:00 2001 From: pschwan Date: Thu, 26 Sep 2002 17:55:55 +0000 Subject: [PATCH] I don't much like crashing --- lustre/ldlm/ldlm_request.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/ldlm/ldlm_request.c b/lustre/ldlm/ldlm_request.c index ecbf98a..87e5f0b 100644 --- a/lustre/ldlm/ldlm_request.c +++ b/lustre/ldlm/ldlm_request.c @@ -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); } -- 1.8.3.1