public inbox for [email protected]
 help / color / mirror / Atom feed
[parent not found: <[email protected]>]
* 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

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 --
     [not found] <[email protected]>
2021-05-20  0:32 ` Confusion regarding the use of OP_TIMEOUT Alex O'Brien
     [not found] <[email protected]>
2021-05-20  0:34 ` Alex O'Brien
2021-05-19 19:51 Drew DeVault
2021-05-20 10:11 ` Pavel Begunkov
2021-05-20 21:58   ` Drew DeVault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox