MRP-1988 ptlrpc: LU-4578 client side patch

Unfortantly after LU-4578 was cherrypicked from Intel
it have been changed. And the main part is client fix for
request deadline calculation according to the server side.
Without it client calculate request deadline base on the
current time, but server send timeout base on the request
arrival time. So request deadline on the client will happened
too late.

This patch is client part of latest LU-4578 patch.

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Change-Id: I1621ddcbdcc03d724071ace66f5a6f52bd5cfb02
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/3333
Tested-by: Jenkins
Reviewed-by: Sergey Cheremencev <sergey_cheremencev@xyratex.com>
Reviewed-by: Denis Kondratenko <denis_kondratenko@xyratex.com>
MRP-1988 test: test to check recovery deadline bug

The main problem is wrong AT estimate during recovery.
This estimation happened during early reply send. So
it would set wrong deadline for request and it will
happened that we get request deadline, or to many early
replies.

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Change-Id: Iaea7e42c297bbae4925bd49cb6f0b6174e326d09
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/3334
Tested-by: Jenkins
Reviewed-by: Sergey Cheremencev <sergey_cheremencev@xyratex.com>
Reviewed-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Denis Kondratenko <denis_kondratenko@xyratex.com>
MRP-1988 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. Client could repeat
reconnects during recovery, and increase recovery time to
hard recovery timeout, the result would be eviction.

Do at_measured() for recovery in the same way like general early
reply base on the current time.

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Change-Id: Idb2130ad76f6d987f338a060e803c8863a456c38
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/3335
Tested-by: Jenkins
Reviewed-by: Sergey Cheremencev <sergey_cheremencev@xyratex.com>
Reviewed-by: Denis Kondratenko <denis_kondratenko@xyratex.com>