From: adilger Date: Sun, 8 Sep 2002 19:39:30 +0000 (+0000) Subject: Don't oops if there is no recovd for a connection. Mike needs to confirm if X-Git-Tag: 0.5.7~11 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f1c6dfbf196d569df4bd17def5b8a19e24727b9d;p=fs%2Flustre-release.git Don't oops if there is no recovd for a connection. Mike needs to confirm if that is wrong (to not have a recovd), or if this fix is correct. --- diff --git a/lustre/ptlrpc/recovd.c b/lustre/ptlrpc/recovd.c index 476c285..3f10733 100644 --- a/lustre/ptlrpc/recovd.c +++ b/lustre/ptlrpc/recovd.c @@ -42,6 +42,11 @@ void recovd_conn_fail(struct ptlrpc_connection *conn) struct recovd_obd *recovd = rd->rd_recovd; ENTRY; + if (!recovd) { + CERROR("no recovd for connection %p\n", conn); + return; + } + spin_lock(&recovd->recovd_lock); list_del(&rd->rd_managed_chain); list_add_tail(&rd->rd_managed_chain, &recovd->recovd_troubled_items);