Skip to content
Commit 3b2deb0e authored by Jens Axboe's avatar Jens Axboe
Browse files

iov_iter: import single vector iovecs as ITER_UBUF



Add a special case to __import_iovec(), which imports a single segment
iovec as an ITER_UBUF rather than an ITER_IOVEC. ITER_UBUF is cheaper
to iterate than ITER_IOVEC, and for a single segment iovec, there's no
point in using a segmented iterator.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e03ad4ee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment