summaryrefslogtreecommitdiffstats
path: root/kernel/sys_ni.c
diff options
context:
space:
mode:
authorJens Axboe2018-11-30 16:47:03 +0100
committerJens Axboe2019-02-28 16:24:23 +0100
commit6d0c48aede85e38316d0251564cab39cbc2422f6 (patch)
tree4aa1374cc7c486a68d666e6dd120a2e66e48231d /kernel/sys_ni.c
parentio_uring: batch io_kiocb allocation (diff)
downloadkernel-qcow2-linux-6d0c48aede85e38316d0251564cab39cbc2422f6.tar.gz
kernel-qcow2-linux-6d0c48aede85e38316d0251564cab39cbc2422f6.tar.xz
kernel-qcow2-linux-6d0c48aede85e38316d0251564cab39cbc2422f6.zip
block: implement bio helper to add iter bvec pages to bio
For an ITER_BVEC, we can just iterate the iov and add the pages to the bio directly. For now, we grab a reference to those pages, and release them normally on IO completion. This isn't really needed for the normal case of O_DIRECT from/to a file, but some of the more esoteric use cases (like splice(2)) will unconditionally put the pipe buffer pages when the buffers are released. Until we can manage that case properly, ITER_BVEC pages are treated like normal pages in terms of reference counting. Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/sys_ni.c')
0 files changed, 0 insertions, 0 deletions