io_uring: move defer tw task checks
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 5 Jan 2023 11:22:23 +0000 (11:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 8 Jan 2023 18:18:44 +0000 (11:18 -0700)
commit77a85f11b050591904923bd398e433aa240260f3
tree157a4e1c5ec46e90a5f6167b2059f3160bcb3e05
parentb24ef3dc37fa07ba1bb808e968d0172e322c6c50
io_uring: move defer tw task checks

Most places that want to run local tw explicitly and in advance check if
they are allowed to do so. Don't rely on a similar check in
__io_run_local_work(), leave it as a just-in-case warning and make sure
callers checks capabilities themselves.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/990fe0e8e70fd4d57e43625e5ce8fba584821d1a.1672916894.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h