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, 29 Jan 2023 22:17:39 +0000 (15:17 -0700)
commit140102ae9a9f2f83f0592b98b3c5c6119d9a9b32
tree7c83692d22146407b437fcfad179523bcb0000f2
parent1414d62985848d095af5a400a4ca074a4888b77f
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