commit | 45097daea2f4e89bdb1c98359f78d0d6feb8e5c8 | [log] [tgz] |
---|---|---|
author | Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com> | Wed Apr 08 22:29:58 2020 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Apr 08 09:23:42 2020 -0600 |
tree | 97a91059f9973494c0a08c2e3923ffe69dff336e | |
parent | 08a1d26eb894a9dcf79f674558a284ad1ffef517 [diff] |
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>