]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: make loop_rw_iter() use original user supplied pointers
authorJens Axboe <axboe@kernel.dk>
Thu, 22 Oct 2020 20:14:12 +0000 (14:14 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Oct 2020 20:14:12 +0000 (14:14 -0600)
commit9d1434601942308dce287e21a430167a034dd259
tree52b10b9be866ee66d241e0095747dc44b8314d2b
parentc6cde10ba8f9ce9a61a32952619b9ac136b0dd75
io_uring: make loop_rw_iter() use original user supplied pointers

We jump through a hoop for fixed buffers, where we first map these to
a bvec(), then kmap() the bvec to obtain the pointer we copy to/from.
This was always a bit ugly, and with the set_fs changes, it ends up
being practically problematic as well.

There's no need to jump through these hoops, just use the original user
pointers and length for the non iter based read/write.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c