Skip to content
Commit ce35a47a authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: add IOSQE_ASYNC



io_uring defaults to always doing inline submissions, if at all
possible. But for larger copies, even if the data is fully cached, that
can take a long time. Add an IOSQE_ASYNC flag that the application can
set on the SQE - if set, it'll ensure that we always go async for those
kinds of requests. Use the io-wq IO_WQ_WORK_CONCURRENT flag to ensure we
get the concurrency we desire for this case.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 895e2ca0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment