Skip to content

Commit

Permalink
io_uring: check IOPOLL/ioprio support upfront
Browse files Browse the repository at this point in the history
Don't punt this check to the op prep handlers, add the support to
io_op_defs and we can check them while setting up the request.

This reduces the text size by 500 bytes on aarch64, and makes this less
fragile by having the check in one spot and needing opcodes to opt in
to IOPOLL or ioprio support.

Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed May 5, 2022
1 parent f2e030d commit 7391142
Showing 1 changed file with 58 additions and 95 deletions.
Loading

0 comments on commit 7391142

Please sign in to comment.