From: shadow Date: Wed, 27 Aug 2008 05:20:43 +0000 (+0000) Subject: if ost is restarted before set_info(KEY_MDS_CONN) finished, this X-Git-Tag: v1_7_110~44 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=863d19c5099ade7c3d1fc12c681f8cfd52046dd6;p=fs%2Flustre-release.git 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 --- diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index b79cfd4..b1ca5ee 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);