From 863d19c5099ade7c3d1fc12c681f8cfd52046dd6 Mon Sep 17 00:00:00 2001 From: shadow <shadow> Date: Wed, 27 Aug 2008 05:20:43 +0000 Subject: [PATCH] if ost is restarted before set_info(KEY_MDS_CONN) finished, this request will resend before finished ost llog init and this produce access to non init llog context. Branch HEAD b=16839 i=adilger i=rread --- lustre/osc/osc_request.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index b79cfd4607..b1ca5ee42f 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -3621,6 +3621,7 @@ static int osc_get_info(struct obd_export *exp, obd_count keylen, ptlrpc_request_free(req); RETURN(rc); } + req->rq_no_delay = req->rq_no_resend = 1; tmp = req_capsule_client_get(&req->rq_pill, &RMF_SETINFO_KEY); memcpy(tmp, key, keylen); @@ -3810,6 +3811,7 @@ static int osc_set_info_async(struct obd_export *exp, obd_count keylen, oscc->oscc_oa.o_valid |= OBD_MD_FLGROUP; LASSERT(oscc->oscc_oa.o_gr > 0); req->rq_interpret_reply = osc_setinfo_mds_conn_interpret; + req->rq_no_delay = req->rq_no_resend = 1; } ptlrpc_request_set_replen(req); -- GitLab