Whamcloud - gitweb
LU-5079 ptlrpc: fix early reply timeout for recovery 13/11213/11
authorAlexander.Boyko <alexander_boyko@xyratex.com>
Thu, 24 Jul 2014 14:35:44 +0000 (18:35 +0400)
committerAndreas Dilger <andreas.dilger@intel.com>
Tue, 21 Oct 2014 18:06:38 +0000 (18:06 +0000)
commit1d889090f2e2902d861d1fab0227c4343127cc42
treefedaa92b93f846ebd0ab7b1fb744b8aa4371bf2b
parent27aab45f9a8841f5413dc84c32b687862741d27d
LU-5079 ptlrpc: fix early reply timeout for recovery

Commit 8b2f9c0e408 http://review.whamcloud.com/9100 changed
the deadline calculation from current time to request arrival.
During recovery, the new deadline could be less than calculated
at request arrival time. And even worse, the deadline may be
in past. For the first case unneeded early reply would be sent
to client. For the second, client requests would be dropped by
timeout and client reconnect happend.

Do at_measured() for recovery in the same way like general early
reply base on the current time. And set new timeout to the end
of recovery.

Test to check recovery deadline bug.

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Change-Id: I29327cb962d1c1a3cd8a6181d27a29593d1d8fc4
Xyratex-bug-id: MRP-1988
Reviewed-on: http://review.whamcloud.com/11213
Tested-by: Jenkins
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/include/obd_support.h
lustre/ldlm/ldlm_lib.c
lustre/ptlrpc/service.c
lustre/tests/replay-ost-single.sh