io-uring.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Confusion regarding the use of OP_TIMEOUT
@ 2021-05-19 19:51 Drew DeVault
  2021-05-20 10:11 ` Pavel Begunkov
  0 siblings, 1 reply; 5+ messages in thread
From: Drew DeVault @ 2021-05-19 19:51 UTC (permalink / raw)
  To: io-uring

Hi folks! I'm trying to use IO_TIMEOUT to insert a pause in the middle
of my SQ. I set the off (desired number of events to wait for) to zero,
which according to the docs just makes it behave like a timer.

Essentially, I want the following:

[operations...]
OP_TIMEOUT
[operations...]

To be well-ordered, so that the second batch executes after the first.
To accomplish this, I've tried to submit the first operation of the
second batch with IO_DRAIN, which causes the CQE to be delayed, but
ultimately it fails with EINTR instead of just waiting to execute.

I understand that the primary motivator for OP_TIMEOUT is to provide a
timeout functionality for other CQEs. Is my use-case not accomodated by
io_uring?

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <af3b1313-2e0a-16fc-facd-aa15dc69f64e@emobrien.com>]
[parent not found: <24207f62-fa0b-a52a-fa06-a39b4e208dd6@emobrien.com>]

end of thread, other threads:[~2021-05-20 21:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-19 19:51 Confusion regarding the use of OP_TIMEOUT Drew DeVault
2021-05-20 10:11 ` Pavel Begunkov
2021-05-20 21:58   ` Drew DeVault
     [not found] <af3b1313-2e0a-16fc-facd-aa15dc69f64e@emobrien.com>
2021-05-20  0:32 ` Alex O'Brien
     [not found] <24207f62-fa0b-a52a-fa06-a39b4e208dd6@emobrien.com>
2021-05-20  0:34 ` Alex O'Brien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).