]> git.baikalelectronics.ru Git - kernel.git/commit
block: Refuse request/bio merges with gaps in the integrity payload
authorSagi Grimberg <sagig@mellanox.com>
Fri, 11 Sep 2015 15:03:04 +0000 (09:03 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 11 Sep 2015 15:03:04 +0000 (09:03 -0600)
commite658d11ecdd62e5cb53e7cb585131317e26e4ef6
treedd495ebf5446f531d88aee04f00857cff243e586
parentf670c70541702235c0ecd049b033c925e89edc51
block: Refuse request/bio merges with gaps in the integrity payload

If a driver sets the block queue virtual boundary mask, it means that
it cannot handle gaps so we must not allow those in the integrity
payload as well.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Fixed up by me to have duplicate integrity merge functions, depending
on whether block integrity is enabled or not. Fixes a compilations
issue with CONFIG_BLK_DEV_INTEGRITY unset.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-integrity.c
block/blk-merge.c
include/linux/blkdev.h