* [PATCH liburing 1/1] man/io_uring_enter.2: notes about cqe-skip & drain interoperability
@ 2021-12-01 13:20 Pavel Begunkov
2021-12-07 16:18 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Begunkov @ 2021-12-01 13:20 UTC (permalink / raw)
To: io-uring; +Cc: asml.silence
IOSQE_CQE_SKIP_SUCCESS can't be used together with draining in a single
ring, add a paragraph explaining what are the restrictions.
Signed-off-by: Pavel Begunkov <[email protected]>
---
man/io_uring_enter.2 | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/man/io_uring_enter.2 b/man/io_uring_enter.2
index b003e05..871cbce 100644
--- a/man/io_uring_enter.2
+++ b/man/io_uring_enter.2
@@ -1115,6 +1115,15 @@ CQEs in cases where the side effects of a successfully executed operation is
enough for userspace to know the state of the system. One such example would
be writing to a synchronisation file.
+It also doesn't work with
+.B IOSQE_IO_DRAIN.
+Using both of them in a ring is undefined behaviour even when they never appear
+together in a single request. Currently, after first request with
+.B IOSQE_CQE_SKIP_SUCCESS,
+all subsequent requests marked for drain will be failed. However, the
+error reporting is best effort only and restrictions may change in
+the future.
+
Available since 5.17.
.PP
--
2.34.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH liburing 1/1] man/io_uring_enter.2: notes about cqe-skip & drain interoperability
2021-12-01 13:20 [PATCH liburing 1/1] man/io_uring_enter.2: notes about cqe-skip & drain interoperability Pavel Begunkov
@ 2021-12-07 16:18 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-12-07 16:18 UTC (permalink / raw)
To: Pavel Begunkov, io-uring
On Wed, 1 Dec 2021 13:20:37 +0000, Pavel Begunkov wrote:
> IOSQE_CQE_SKIP_SUCCESS can't be used together with draining in a single
> ring, add a paragraph explaining what are the restrictions.
>
>
Applied, thanks!
[1/1] man/io_uring_enter.2: notes about cqe-skip & drain interoperability
commit: 1d86befc0552332fce761a63b2e28e33b743a074
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-07 16:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-01 13:20 [PATCH liburing 1/1] man/io_uring_enter.2: notes about cqe-skip & drain interoperability Pavel Begunkov
2021-12-07 16:18 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox