Whamcloud - gitweb
LU-4578 ptlrpc: Early replies need to honor at_max 30/10230/3
authorChris Horn <hornc@cray.com>
Mon, 3 Feb 2014 21:24:01 +0000 (15:24 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 16 May 2014 19:54:49 +0000 (15:54 -0400)
commit9298b92e69d095b3e7809f26d47ae22e646d55c2
tree4083de8b8bf789d93b8b1afb9b2e14b8acaeace5
parentbd455e64765305f77ca394c2004ea8d0203881c6
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