io_uring: check IOPOLL/ioprio support upfront
authorJens Axboe <axboe@kernel.dk>
Tue, 26 Apr 2022 17:34:56 +0000 (11:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Apr 2022 02:36:56 +0000 (20:36 -0600)
commit32d51f3aae195f0091f56e00cf561a7a70be2b09
tree7ce65fb175c1e056ed2364837bf9269845271268
parent228b3912854171b963d76643ddc2836d6000d0f3
io_uring: check IOPOLL/ioprio support upfront

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.

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