diff options
author | 2016-03-02 18:07:14 +0100 | |
---|---|---|
committer | 2016-03-03 14:45:02 -0700 | |
commit | 4d6af73d9e43f78651a43ee4c5ad221107ac8365 (patch) | |
tree | 4f267be22aec6c45e24894be81cc92c3bc1715f5 /virt | |
parent | block: fix blk_rq_get_max_sectors for driver private requests (diff) | |
download | linux-dev-4d6af73d9e43f78651a43ee4c5ad221107ac8365.tar.xz linux-dev-4d6af73d9e43f78651a43ee4c5ad221107ac8365.zip |
block: support large requests in blk_rq_map_user_iov
This patch adds support for larger requests in blk_rq_map_user_iov by
allowing it to build multiple bios for a request. This functionality
used to exist for the non-vectored blk_rq_map_user in the past, and
this patch reuses the existing functionality for it on the unmap side,
which stuck around. Thanks to the iov_iter API supporting multiple
bios is fairly trivial, as we can just iterate the iov until we've
consumed the whole iov_iter.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Jeff Lien <Jeff.Lien@hgst.com>
Tested-by: Jeff Lien <Jeff.Lien@hgst.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions