From 145c3580a2dce0044514962b1c673f614ad11967 Mon Sep 17 00:00:00 2001 From: pschwan Date: Mon, 9 Sep 2002 00:52:32 +0000 Subject: [PATCH] b=606116 Add a check for req->rq_export in ldlm_callback_handler, to immediately return an error instead of later triggering the 'conn' assertion in ptl_send_buf --- lustre/ldlm/ldlm_lockd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/ldlm/ldlm_lockd.c b/lustre/ldlm/ldlm_lockd.c index 4c473d4..b16cdf4 100644 --- a/lustre/ldlm/ldlm_lockd.c +++ b/lustre/ldlm/ldlm_lockd.c @@ -466,6 +466,12 @@ static int ldlm_callback_handler(struct ptlrpc_request *req) GOTO(out, rc); } + if (req->rq_export == NULL) { + CERROR("lustre_dlm: operation %d with missing/invalid export\n", + req->rq_reqmsg->opc); + GOTO(out, rc = -ENOTCONN); + } + switch (req->rq_reqmsg->opc) { case LDLM_BL_CALLBACK: CDEBUG(D_INODE, "blocking ast\n"); -- 1.8.3.1