Whamcloud - gitweb
LU-16483 ptlrpc: Track highest reply XID 07/49807/10
authorChris Horn <chris.horn@hpe.com>
Fri, 27 Jan 2023 20:47:25 +0000 (14:47 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 18 Apr 2023 03:22:21 +0000 (03:22 +0000)
commiteb1f4a5222039be9f728839ec8f9cde904a1273f
tree8fab4eca6171f9435f4f55dcc6b4de2459f2f0db
parentdd6a1df318a8cc480e7279d27a303a6a4fe7d641
LU-16483 ptlrpc: Track highest reply XID

Keep track of the highest XID that we've received a reply for.
When an OBD_PING expires, do not disconnect the import if the failed
XID is less than or equal to the last reply XID. This avoids situation
where a lost OBD_PING rpc causes a reconnect even though we've
completed other RPCs in the meantime.

HPE-bug-id: LUS-11474
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I7e66bcc1368fa41ec86ffd843abac676f8d29254
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49807
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_import.h
lustre/include/obd_support.h
lustre/ptlrpc/client.c
lustre/ptlrpc/events.c
lustre/ptlrpc/niobuf.c
lustre/tests/replay-single.sh