• Jens Axboe's avatar
    Revert "io_uring: fix IO hang in io_wq_put_and_exit from do_exit()" · 023464fe
    Jens Axboe authored
    This reverts commit b484a40d.
    
    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: default avatarJens Axboe <axboe@kernel.dk>
    023464fe
io_uring.c 122 KB