X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fservice.c;h=9625af55584243984d983520d9c4e4d2656dc1c2;hp=5f2322f247f621f76b23bdebb3f852b379b18259;hb=0300a6efd226f138b3f6968f82b0a4313074a1a6;hpb=a5161cc005aeb383cb326a32976f8d43e7594bb3 diff --git a/lustre/ptlrpc/service.c b/lustre/ptlrpc/service.c index 5f2322f..9625af5 100644 --- a/lustre/ptlrpc/service.c +++ b/lustre/ptlrpc/service.c @@ -2102,7 +2102,8 @@ ptlrpc_server_handle_request(struct ptlrpc_service_part *svcpt, if (unlikely(ptlrpc_check_req(request))) goto put_conn; ptlrpc_update_export_timer(request->rq_export, - timediff_usecs / (USEC_PER_SEC / 2)); + div_u64(timediff_usecs, + USEC_PER_SEC / 2)); } /* Discard requests queued for longer than the deadline. @@ -2189,7 +2190,7 @@ put_conn: DEBUG_REQ(D_ADAPTTO, request, "sent %d early replies before finishing in %llds", request->rq_early_count, - arrived_usecs / USEC_PER_SEC); + div_u64(arrived_usecs, USEC_PER_SEC)); } ptlrpc_server_finish_active_request(svcpt, request);