On 10/20/21 9:45 AM, Pavel Begunkov wrote: > On 10/20/21 15:01, Jens Axboe wrote: >> On Wed, 20 Oct 2021 09:53:02 +0100, Pavel Begunkov wrote: >>> io_unprep_linked_timeout() is broken, first it needs to return back >>> REQ_F_ARM_LTIMEOUT, so the linked timeout is enqueued and disarmed. But >>> now we refcounted it, and linked timeouts may get not executed at all, >>> leaking a request. >>> >>> Just kill the unprep optimisation. > > Jens, if the patches are not too deep, would also be lovely to > add reported-by to this and the other one. > > > Link: https://github.com/axboe/liburing/issues/460 > Reported-by: Beld Zhang <beldzhang@xxxxxxxxx> Done -- Jens Axboe