io_uring: don't run task work on an exiting task
authorJens Axboe <axboe@kernel.dk>
Mon, 12 Oct 2020 17:53:29 +0000 (11:53 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Nov 2020 11:45:34 +0000 (12:45 +0100)
commit07463d7da99985d8254f6e5c66cd9843037a9bbd
tree406cb69793fd4a2c409a2b80d94d3524b978cc58
parent6e1f770fbc0aea308be1d5b6f3dffee89d0717ce
io_uring: don't run task work on an exiting task

commit 6200b0ae4ea28a4bfd8eb434e33e6201b7a6a282 upstream.

This isn't safe, and isn't needed either. We are guaranteed that any
work we queue is on a live task (and will be run), or it goes to
our backup io-wq threads if the task is exiting.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c