]> www.infradead.org Git - users/hch/block.git/commit
block: also verify PI when not submitted by the block layer
authorChristoph Hellwig <hch@lst.de>
Sun, 6 Jun 2021 12:12:05 +0000 (14:12 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 9 Jun 2022 07:06:38 +0000 (09:06 +0200)
commit460cb6d3b26fb501fcfe77e2fbff1b4af147a469
tree067a946a186356252db2e1699ccaf9c6e9259200
parent525cca57145b2072626c683be44724447c443cbb
block: also verify PI when not submitted by the block layer

Currently __bio_integrity_endio skips bios not marked with
BIP_BLOCK_INTEGRITY.  This means bios submitted by the SCSI and nvme
target drivers never verify the protection information.  Fix that by
removing the check for this flag.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/bio-integrity.c