-
Specifically, is it relevant if a single thread operates on io_uring without SQ_POLL mode enabled? Should we always set both flags to gain performance benefits? Are there any tradeoffs? Can I assume that kernels before 5.19 will just silently ignore those flags? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes
Only set TASKRUN_FLAG is you rely on io_uring_cqe_peek() operations to be reliable. This is documented in the man page too.
No, as with any operation, if you pass in flags the kernel doesn't know about, it'll fail with -EINVAL. |
Beta Was this translation helpful? Give feedback.
Yes
Only set TASKRUN_FLAG is you rely on io_uring_cqe_peek() operations to be reliable. This is documented in the man page too.
No, as with any operation, if you pass in flags the kernel doesn't know about, it'll fail with -EINVAL.