Whamcloud - gitweb
LU-4578 ptlrpc: Early replies need to honor at_max 00/9100/7
authorChris Horn <hornc@cray.com>
Mon, 3 Feb 2014 21:24:01 +0000 (15:24 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 6 May 2014 04:58:41 +0000 (04:58 +0000)
commit8b2f9c0e40822dd847494f27d9ef4c6858fee78c
tree43f0d3edd806a225b4b4b377c59989d46adf0b41
parent9461ed3fff67d81a9de08653fdb6975db8b76be3
LU-4578 ptlrpc: Early replies need to honor at_max

When determining whether an early reply can be sent the server will
calculate the new deadline based on an offset from the request
arrival time. However, when actually setting the new deadline
the server offsets the current time. This can result in deadlines
being extended more than at_max seconds past the request arrival
time. Instead, the server should offset the arrival time when updating
its request timeout.

When a client receives an early reply it doesn't know the server side
arrival time so we use the original sent time as an approximation.

Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: I1b7b04bd20ea5d471ab3777f987e89add744b813
Reviewed-on: http://review.whamcloud.com/9100
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Christopher J. Morrone <chris.morrone.llnl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/client.c
lustre/ptlrpc/import.c
lustre/ptlrpc/service.c