OSDN Git Service

io_uring: don't inflight-track linked timeouts
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 15 Aug 2021 09:40:19 +0000 (10:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:10:37 +0000 (13:10 -0600)
commit761bcac1573efc99042d59add94d468bf17127f0
tree92649083475dcdae19c841ecc27b2cc4f8a10ccb
parent48dcd38d73c22b22bf9dc1c01b0ca0b8414b31da
io_uring: don't inflight-track linked timeouts

Tracking linked timeouts as infligh was needed to make sure that io-wq
is not destroyed by io_uring_cancel_generic() racing with
io_async_cancel_one() accessing it. Now, cancellations issued by linked
timeouts are done in the task context, so it's already synchronised.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e1b05cf47cb69df2305efdbee8cf7ba36f46c1a3.1628981736.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c