On 15/11/2019 00:25, Jens Axboe wrote: > On 11/14/19 2:20 PM, Pavel Begunkov wrote: >> If IORING_OP_LINK_TIMEOUT request is a head of a link or an individual >> request, pass it further through the submission path, where it will >> eventually fail in __io_submit_sqe(). So respecting links and drains. >> >> The case, which is really need to be checked, is if a >> IORING_OP_LINK_TIMEOUT request is 3rd or later in a link, that is >> invalid from the user API perspective (judging by the code). Moreover, >> put/free and friends will try to io_link_cancel_timeout() such request, >> even though it wasn't initialised. > > Care to add a test case for these to liburings test/link-timeout.c? > I'll add it a bit later -- Pavel Begunkov