Skip to content
Snippets Groups Projects
Commit 549c2cbf authored by Eric Mei's avatar Eric Mei
Browse files

branch: b1_8

don't report service est. for MSG_ERR during recovery.
b=15815
r=rread
r=nathan
parent 08cec6e9
No related branches found
No related tags found
No related merge requests found
...@@ -360,8 +360,15 @@ int ptlrpc_send_reply (struct ptlrpc_request *req, int flags) ...@@ -360,8 +360,15 @@ int ptlrpc_send_reply (struct ptlrpc_request *req, int flags)
} }
/* Report actual service time for client latency calc */ /* Report actual service time for client latency calc */
lustre_msg_set_service_time(req->rq_repmsg, service_time); lustre_msg_set_service_time(req->rq_repmsg, service_time);
/* Report service time estimate for future client reqs */ /* Report service time estimate for future client reqs, but report 0
lustre_msg_set_timeout(req->rq_repmsg, at_get(&svc->srv_at_estimate)); * (to be ignored by client) if it's a error reply during recovery.
* (bz15815) */
if (req->rq_type == PTL_RPC_MSG_ERR &&
(req->rq_export == NULL || req->rq_export->exp_obd->obd_recovering))
lustre_msg_set_timeout(req->rq_repmsg, 0);
else
lustre_msg_set_timeout(req->rq_repmsg,
at_get(&svc->srv_at_estimate));
target_pack_pool_reply(req); target_pack_pool_reply(req);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment