Whamcloud - gitweb
LU-13389 tgt: not rollback obsolete rq 21/38221/3
authorAlexander Zarochentsev <c17826@cray.com>
Sat, 4 Apr 2020 06:44:26 +0000 (09:44 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 7 May 2020 05:42:46 +0000 (05:42 +0000)
commite87e30460b18e73d1dbf2627e59485ae3d670e60
tree85d904454a592178cf0c56090e26501d06e41055
parent53274fbd4bcf4f5b99f88a1651b661bd6333228b
LU-13389 tgt: not rollback obsolete rq

Restoring old pre-LU-11444 behavior in
last_rcvd/reply_data update, do not generate
a error for obsolete requests. Othewise tx_end
tries to rollback the operation and does it partially
leaving inodes unattached and changelog records not cleared;
Fixing reply_data slot leak on error.

Fixes: 23773b3 ("LU-11444 ptlrpc: resend may corrupt the data")
HPE-bug-id: LUS-8590
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: I76c2de7b820da0239ce2f0a9d17b7dedadc0519b
Reviewed-on: https://review.whamcloud.com/38221
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/target/tgt_lastrcvd.c