]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Sun, 11 Apr 2021 23:41:59 +0000 (17:41 -0600)
commitc2f71051e6b0063ad13eab0dec297908a15a189f
treefdff1837ed616cf311fdfb6ffad5e5bc4cff1811
parentdc688951f7efbfc7677eb264fe915ab440968081
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