block: check virt boundary in bio_will_gap()
authorMing Lei <ming.lei@canonical.com>
Fri, 26 Feb 2016 15:40:51 +0000 (23:40 +0800)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 21:42:49 +0000 (14:42 -0700)
commite0af29171aa8912e1ca95023b75ef336cd70d661
tree0e8bd6fdfb2b96eb505f71f306afbab72d4f3c88
parent7bcd79ac50d9d83350a835bdb91c04ac9e098412
block: check virt boundary in bio_will_gap()

In the following patch, the way for figuring out
the last bvec will be changed with a bit cost introduced,
so return immediately if the queue doesn't have virt
boundary limit. Actually most of devices have not
this limit.

Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blkdev.h