Whamcloud - gitweb
LU-11697 ost: do not reuse T10PI guards of unaligned page write 52/33752/6
authorLi Xi <lixi@ddn.com>
Thu, 29 Nov 2018 14:51:44 +0000 (09:51 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 4 Dec 2018 23:21:17 +0000 (23:21 +0000)
commit6d8a7af1cd65409bdb5a307e76090ed460d5a6f6
tree6cfcbafcf130732e44611dfef903e6e45f3a711b
parentc1f0520554460237e835a3ad37e7d3baa0dca937
LU-11697 ost: do not reuse T10PI guards of unaligned page write

If the write is partial page, the guards of RPC checksum should not
be reused for bio submission since the data might not be full-sector.
The bio guards will be generated later based on the full sectors. If
the sector size is 512B rather than 4 KB, or the page size on OST is
larger than 4KB, this might drop some useful guards for partial page
write, but it will only add minimal extra time of checksum calculation.

Change-Id: I868342df87c28ea91f5f8364fe377277595ecf6d
Signed-off-by: Li Xi <lixi@ddn.com>
Reviewed-on: https://review.whamcloud.com/33752
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/target/tgt_handler.c