From 78def69662c7e745fc5d06c92740f8137dafdbe9 Mon Sep 17 00:00:00 2001 From: shaver Date: Sun, 8 Sep 2002 17:21:08 +0000 Subject: [PATCH] Avoid OOPS on timeout from unconnected client. (Temporary.) --- lustre/ptlrpc/client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 04143e3..e5e164e 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -441,10 +441,12 @@ static int expired_request(void *data) ENTRY; CERROR("req timeout on connid %d xid %Ld\n", req->rq_connid, (unsigned long long)req->rq_xid); + req->rq_flags |= PTL_RPC_FL_TIMEOUT; + if (!req->rq_import->imp_connection->c_recovd_data.rd_recovd) + RETURN(1); + req->rq_timeout = 0; req->rq_connection->c_level = LUSTRE_CONN_RECOVD; - req->rq_flags |= PTL_RPC_FL_TIMEOUT; - /* Activate the recovd for this client, if there is one. */ recovd_conn_fail(req->rq_import->imp_connection); /* If this request is for recovery or other primordial tasks, -- 1.8.3.1