io_uring: consider ring dead once the ref is marked dying
authorJens Axboe <axboe@kernel.dk>
Fri, 7 Jul 2023 17:20:04 +0000 (11:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Jun 2024 17:15:13 +0000 (11:15 -0600)
commit56937fb098867592a1520fc71c9e08afbb2d8fd7
tree2dfa55d80f0f4d7a9c452fb62a2eb9a826373899
parent9fa73fd8ff4263dde2c6d9a50c93cd9cb40bad91
io_uring: consider ring dead once the ref is marked dying

Don't gate this on the task exiting flag. It's generally not a good idea
to gate it on the task PF_EXITING flag anyway. Once the ring is starting
to go through ring teardown, the ref is marked as dying. Use that as
our fallback/cancel mechanism.

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