History

io_uring: provide IORING_ENTER_SQ_WAIT for SQPOLL SQ ring waits

When using SQPOLL, applications can run into the issue of running out of SQ ring entries because the thread hasn't consumed them yet. The only option for dealing with that is checking later, or busy checking for the condition. Provide IORING_ENTER_SQ_WAIT if applications want to wait on this condition.

Jens Axboe committed 6 years ago

Commit 90554201 parent 738277a2 files · +38 −3Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/io_uring.h+1−0
@@ -225,6 +225,7 @@ struct io_cqring_offsets { · 224 unmodified lines
225225 */
226226 #define IORING_ENTER_GETEVENTS (1U << 0)
227227 #define IORING_ENTER_SQ_WAKEUP (1U << 1)
228+#define IORING_ENTER_SQ_WAIT (1U << 2)
228229
229230 /*
230231 * Passed in for io_uring_setup(2). Copied back with updated info on success