Home
last modified time | relevance | path

Searched hist:"487 c20b0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/lib/
H A Diov_iter.c487c20b0 Thu Mar 30 16:53:51 CDT 2023 Linus Torvalds <torvalds@linux-foundation.org> iov: improve copy_iovec_from_user() code generation

Use the same pattern as the compat version of this code does: instead of
copying the whole array to a kernel buffer and then having a separate
phase of verifying it, just do it one entry at a time, verifying as you
go.

On Jens' /dev/zero readv() test this improves performance by ~6%.

[ This was obviously triggered by Jens' ITER_UBUF updates series ]

Reported-and-tested-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/all/de35d11d-bce7-e976-7372-1f2caf417103@kernel.dk/
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>