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>
struct bio_integrity_payload *bip = bio_integrity(bio);
if (bio_op(bio) == REQ_OP_READ && !bio->bi_status &&
- (bip->bip_flags & BIP_BLOCK_INTEGRITY) && bi->profile->verify_fn) {
+ bi->profile->verify_fn) {
INIT_WORK(&bip->bip_work, bio_integrity_verify_fn);
queue_work(kintegrityd_wq, &bip->bip_work);
return false;