io_uring: mark opcodes that always need io-wq punt io_uring-sync-issue
authorJens Axboe <axboe@kernel.dk>
Wed, 19 Apr 2023 14:49:13 +0000 (08:49 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Apr 2023 01:15:29 +0000 (19:15 -0600)
commit6f129bd35a472e44965f092962b6c2128dbd8ec0
treed8f93048c961677ec8b95e899f9ca40c40b9bb93
parent93148663cc52f20b8ffae9f7bd1954e9caab0a12
io_uring: mark opcodes that always need io-wq punt

Add an opdef bit for them, and set it for the opcodes where we always
need io-wq punt. With that done, exclude them from the file_can_poll()
check in terms of whether or not we need to punt them if any of the
NO_OFFLOAD flags are set.

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