Whamcloud - gitweb
LU-14436 tgt: only use T10PI guard when doing full sector read 77/41677/2
authorLi Dongyang <dongyangli@ddn.com>
Tue, 16 Feb 2021 12:40:05 +0000 (23:40 +1100)
committerOleg Drokin <green@whamcloud.com>
Mon, 22 Feb 2021 19:27:29 +0000 (19:27 +0000)
commitf44413717eaf5cb938d9c9b2b62d312f064d282a
tree92256be91ef9a6b6d27b81873e57330d61294e39
parentece23db121d94c8194fada3cf0d0d1f9d9beeed7
LU-14436 tgt: only use T10PI guard when doing full sector read

The T10PI guard was generated on full sectors, if we
do we partial read and still use the guard, the rpc
checksum won't match.

Test-Parameters: trivial
Change-Id: I40d481d703a46b9711021a162208b86a956bd8d1
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/41677
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/target/tgt_handler.c