io_uring: don't run task work on an exiting task
authorJens Axboe <axboe@kernel.dk>
Sun, 13 Sep 2020 20:38:30 +0000 (14:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Sep 2020 16:22:15 +0000 (10:22 -0600)
commit6200b0ae4ea28a4bfd8eb434e33e6201b7a6a282
tree030f91c1bd13d622e75f8b0f7b58bc141aeb15c5
parent87ceb6a6b81eca000911403446d4c6043b4e4f82
io_uring: don't run task work on an exiting task

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>
fs/io_uring.c