]> git.baikalelectronics.ru Git - kernel.git/commit
block: Copy a user iovec if it includes gaps
authorSagi Grimberg <sagig@mellanox.com>
Thu, 3 Sep 2015 16:28:23 +0000 (19:28 +0300)
committerJens Axboe <axboe@fb.com>
Fri, 11 Sep 2015 15:03:50 +0000 (09:03 -0600)
commit3008cf4ac31f19569915e4ee1869506aa7348b78
treea083b47153c0a53afb12e1163c92f2b2ebe741b7
parentfc254297b9350b835c6a002068e5351f72e0b87c
block: Copy a user iovec if it includes gaps

For drivers that don't support gaps in the SG lists handed to
them we must bounce (copy the user buffers) and pass a bio that
does not include gaps. This doesn't matter for any current user,
but will help to allow iser which can't handle gaps to use the
block virtual boundary instead of using driver-local bounce
buffering when handling SG_IO commands.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-map.c