Whamcloud - gitweb
LU-14436 tgt: only use T10PI guard when doing full sector read
authorLi Dongyang <dongyangli@ddn.com>
Tue, 16 Feb 2021 12:40:05 +0000 (23:40 +1100)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 6 Mar 2021 20:41:48 +0000 (20:41 +0000)
commitb2d006f91d7366cf74328bab46b669d49dbcc9a7
tree0139d49dd584fbc4c0303b607c2bc2761bc2d93a
parent97ea1a365eb01854690d77797122874051d9ef40
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.

Lustre-commit: f44413717eaf5cb938d9c9b2b62d312f064d282a
Lustre-change: https://review.whamcloud.com/41677

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