]> www.infradead.org Git - users/jedix/linux-maple.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)
committerAshok Vairavan <ashok.vairavan@oracle.com>
Mon, 23 Oct 2017 18:28:18 +0000 (11:28 -0700)
commitcc500383c29a734102683003e2485dac6c6a0f05
tree567a1a7a481f8ebce46ebbf6f7d73a46e303ba8d
parent5ba566b455bd5302aff276dca38059202b7be08c
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>
(cherry picked from commit 46348456c1791053dcbe5a9e21825b10a3c8a8fb)

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
block/blk-map.c