]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit000f64693ed83d7f2a960fcd564e8d57e9dc9fab
tree0e8bd6fdfb2b96eb505f71f306afbab72d4f3c88
parent977a665f4dfca04c14d309282a925ca4d2b828bb
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