block: remove the segment size check in bio_will_gap
authorChristoph Hellwig <hch@lst.de>
Tue, 21 May 2019 07:01:42 +0000 (09:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 May 2019 16:25:26 +0000 (10:25 -0600)
commit200a9aff7b02feea30b01141b0df9bc19457a232
tree57a00310c58349e660c47462dc073e4fca29c771
parent09324d32d2a0843e66652a087da6f77924358e62
block: remove the segment size check in bio_will_gap

We fundamentally do not have a maximum segement size for devices with a
virt boundary.  So don't bother checking it, especially given that the
existing checks didn't properly work to start with as we never fully
update the front/back segment size and miss the bi_seg_front_size that
wuld have been required for some cases.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-merge.c