block: Refuse adding appending a gapped integrity page to a bio

This is only theoretical at the moment given that the only
subsystems that generate integrity payloads are the block layer
itself and the scsi target (which generate well aligned integrity
payloads). But when we will expose integrity meta-data to user-space,
we'll need to refuse appending a page with a gap (if the queue
virtual boundary is set).

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Jens Axboe <axboe@fb.com>

authored by Sagi Grimberg and committed by Jens Axboe 87a816df 7f39add3

+5
+5
block/bio-integrity.c
··· 140 140 141 141 iv = bip->bip_vec + bip->bip_vcnt; 142 142 143 + if (bip->bip_vcnt && 144 + bvec_gap_to_prev(bdev_get_queue(bio->bi_bdev), 145 + &bip->bip_vec[bip->bip_vcnt - 1], offset)) 146 + return 0; 147 + 143 148 iv->bv_page = page; 144 149 iv->bv_len = len; 145 150 iv->bv_offset = offset;