X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fclient.c;h=3f3e2200cdcd4e344b8aaed246ae7d3dff45b361;hp=a54378852af22fdf36066470accf41d94fbff0bd;hb=8b2f9c0e40822dd847494f27d9ef4c6858fee78c;hpb=9461ed3fff67d81a9de08653fdb6975db8b76be3 diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index a543788..3f3e220 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -374,9 +374,11 @@ static int ptlrpc_at_recv_early_reply(struct ptlrpc_request *req) spin_lock(&req->rq_lock); olddl = req->rq_deadline; - /* server assumes it now has rq_timeout from when it sent the - * early reply, so client should give it at least that long. */ - req->rq_deadline = cfs_time_current_sec() + req->rq_timeout + + /* server assumes it now has rq_timeout from when the request + * arrived, so the client should give it at least that long. + * since we don't know the arrival time we'll use the original + * sent time */ + req->rq_deadline = req->rq_sent + req->rq_timeout + ptlrpc_at_get_net_latency(req); DEBUG_REQ(D_ADAPTTO, req,