io_uring: clean R_DISABLED startup mess
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 8 Mar 2021 13:20:57 +0000 (13:20 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Mar 2021 14:28:42 +0000 (07:28 -0700)
commit0298ef969a110ca03654f0cea9b50e3f3b331acc
treee93af2b4339642d4ac4d1090c523d0aae58a3889
parentf458dd8441e56d122ddf1d8e2af0b6ee62f52af9
io_uring: clean R_DISABLED startup mess

There are enough of problems with IORING_SETUP_R_DISABLED, including the
burden of checking and kicking off the SQO task all over the codebase --
for exit/cancel/etc.

Rework it, always start the thread but don't do submit unless the flag
is gone, that's much easier.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c