Whamcloud - gitweb
LU-5651: ptlrpc: fix import state during replay 15/12015/2
authorAndriy Skulysh <Andriy_Skulysh@xyratex.com>
Tue, 23 Sep 2014 11:25:01 +0000 (14:25 +0300)
committerAndriy Skulysh <Andriy_Skulysh@xyratex.com>
Tue, 23 Sep 2014 11:59:11 +0000 (14:59 +0300)
commitf61cec84e61e4be07ab741dd0fbeac3b4a388eef
tree2fc30b39f072fb97f4168204564707d4775073a6
parent9924ee329a87cf971ec2d32a64c65fd04bad6022
LU-5651: ptlrpc: fix import state during replay

Client doesn't restore import state correctly
on reconnect during replay. It resends lock replay
when final ping was queued by server.
Server fails with "target_queue_recovery_request())
ASSERTION( req->rq_export->exp_lock_replay_needed ) failed"

Add imp_replay_state to store last replay state.
imp_state is restored from imp_replay_state
during reconnect.

Xyratex-bug-id: MRP-2022
Signed-off-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Change-Id: Iaa14fe968cc31f266b605785df4fa676083fbca4
lustre/include/lustre_import.h
lustre/include/obd_support.h
lustre/ldlm/ldlm_lib.c
lustre/ptlrpc/import.c
lustre/ptlrpc/service.c
lustre/tests/replay-single.sh