Revert "io_uring: fix IO hang in io_wq_put_and_exit from do_exit()"
authorJens Axboe <axboe@kernel.dk>
Thu, 7 Sep 2023 15:41:49 +0000 (09:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Sep 2023 15:41:49 +0000 (09:41 -0600)
commit023464fe33a53d7e3fa0a1967a2adcb17e5e40e3
tree5523525bf1d708c4d49afd85171fcffc7b35afa0
parent27122c079f5b4b4ecf1323b65700edc57e07bf6e
Revert "io_uring: fix IO hang in io_wq_put_and_exit from do_exit()"

This reverts commit b484a40dc1f16edb58e5430105a021e1916e6f27.

This commit cancels all requests with io-wq, not just the ones from the
originating task. This breaks use cases that have thread pools, or just
multiple tasks issuing requests on the same ring. The liburing
regression test for this also shows that problem:

$ test/thread-exit.t
cqe->res=-125, Expected 512

where an IO thread gets its request canceled rather than complete
successfully.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c