Skip to content

iov: Optimise user copies

David Laight lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iov: Remove access_ok() from import_iovec()lib/iov_iter.c+0 -90 replies
2/3iov: Use masked user accesseslib/iov_iter.c+28 -160 replies
3/3iov: Optimise __import_iovec_ubuf()lib/iov_iter.c+35 -90 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJens Axboe
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH next 0/3] iov: Optimise user copies

The speculation barrier in access_ok() is expensive.

The first patch removes the initial checks when reading the iovec[]. The checks are repeated before the actual copy.

The second patch uses 'user address masking' if supported.

The third removes a lot of code for single entry iovec[].

David Laight (3):
Remove access_ok() from import_iovec()
Use masked user accesses
Optimise __import_iovec_ubuf()

 lib/iov_iter.c | 97 ++++++++++++++++++++++++++++++++------------------
 1 file changed, 63 insertions(+), 34 deletions(-)
Signature · 1 line
2.39.5