io_uring: don't do extra EXITING cancellations
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 22 Mar 2021 01:58:25 +0000 (01:58 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:47:12 +0000 (07:47 -0600)
commit247c327508f742ee69f7dfdd282b47ddf54f4aa1
tree2acfa57e3626363b9a87c98652c57bf02f269774
parent350fcb229cb9a7137a05abf842b22c4395f03356
io_uring: don't do extra EXITING cancellations

io_match_task() matches all requests with PF_EXITING task, even though
those may be valid requests. It was necessary for SQPOLL cancellation,
but now it kills all requests before exiting via
io_uring_cancel_sqpoll(), so it's not needed.

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