io_uring: kill sqo_dead and sqo submission halting
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 1 Mar 2021 13:02:15 +0000 (13:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Mar 2021 20:11:28 +0000 (13:11 -0700)
commit2e31312d5bfcf5293b9e1753ee2e276ec0831adb
treefd96824a7d955ae1d158076814068744abd6076b
parent9e27652c987541aa7cc062e59343e321fff539ae
io_uring: kill sqo_dead and sqo submission halting

As SQPOLL task doesn't poke into ->sqo_task anymore, there is no need to
kill the sqo when the master task exits. Before it was necessary to
avoid races accessing sqo_task->files with removing them.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
[axboe: don't forget to enable SQPOLL before exit, if started disabled]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c