io-uring-linked-timeout · shipping · also IORING_OP_LINK_TIMEOUT, io_uring_prep_link_timeout

io_uring linked timeout

An io_uring linked timeout is a timer request attached to an operation that can trigger cancellation when its deadline expires.

Related Observatory article: Read on hesela.com

In the two-request case, the target is marked IOSQE_IO_LINK and followed by the timeout SQE. A timeout CQE with -ECANCELED can mean the timer was disarmed after the target finished, not that the target itself was canceled. [1]

Linux v6.14's io_req_task_link_timeout can attempt cancellation and report its error or -ETIME on a zero return; when no predecessor remains, it can emit -ETIME without that attempt. Check the target's separate result; timer expiry does not undo earlier writes. [2]

io_uring_wait_cqe_timeout instead bounds a wait for a CQE; expiration of that wait does not establish cancellation of an outstanding operation. [3]

Read/write payload buffers must remain valid until the target operation completes; submission stability does not shorten that lifetime. [5]

A linked timeout marked IOSQE_CQE_SKIP_SUCCESS posts no CQE, regardless of expiration or cancellation. Suppression on the target alone does not select this timeout behavior; the timeout's own flag does. [6]

Relations

related
io_uring, io_uring completion queue entry, io_uring linked requests, io_uring cancellation, I/O timeout

Advantages

  • Associates a deadline with a specific outstanding operation.

Limitations

  • A deadline is not a transaction rollback or durability guarantee.
  • The two-request result discussion assumes visible completions; the suppression exception is described separately. Multishot requests, hard-linked chains and nonzero timeout flags remain outside this explanation.

Citations

  1. Linux v6.14: io_req_task_link_timeout and io_disarm_next. (accessed 2026-10-17)
  2. liburing 2.9: io_uring_wait_cqe_timeout(3), waiting result versus operation result. (accessed 2026-10-17)
  3. liburing: io_uring(7), SQE pointer lifetimes and data stability; current manual reviewed 17 October 2026. (accessed 2026-10-17)
  4. liburing 2.11: io_uring_enter(2), IOSQE_CQE_SKIP_SUCCESS and link/timeout exceptions (accessed 2026-11-12)

Further reading

  1. io_uring: completion is not a durable commit (accessed 2026-10-17)

JSON: /data/terms/io-uring-linked-timeout.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. io_uring linked timeout. Hesela. 2026-11-12. https://hesela.dev/terms/io-uring-linked-timeout/