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>
Mon, 1 Mar 2021 17:10:31 +0000 (10:10 -0700)
commit6950025140702bef38c42d9e6b87906cdda74461
treeee2fab741c56030bc2b6603776770d34745971a5
parent4310cda91b65e831ebe2e7668a97db970e10f4f4
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