diff options
author | Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com> | 2020-04-08 16:29:58 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-08 17:23:42 +0200 |
commit | 45097daea2f4e89bdb1c98359f78d0d6feb8e5c8 (patch) | |
tree | 97a91059f9973494c0a08c2e3923ffe69dff336e /fs/qnx6/dir.c | |
parent | io_uring: ensure openat sets O_LARGEFILE if needed (diff) | |
download | linux-45097daea2f4e89bdb1c98359f78d0d6feb8e5c8.tar.xz linux-45097daea2f4e89bdb1c98359f78d0d6feb8e5c8.zip |
io_uring: do not always copy iovec in io_req_map_rw()
In io_read_prep() or io_write_prep(), io_req_map_rw() takes
struct io_async_rw's fast_iov as argument to call io_import_iovec(),
and if io_import_iovec() uses struct io_async_rw's fast_iov as
valid iovec array, later indeed io_req_map_rw() does not need
to do the memcpy operation, because they are same pointers.
Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/qnx6/dir.c')
0 files changed, 0 insertions, 0 deletions