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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -225,6 +225,7 @@ struct io_cqring_offsets { · 224 unmodified lines | |||
| 225 | */ | 225 | */ |
| 226 | #define IORING_ENTER_GETEVENTS (1U << 0) | 226 | #define IORING_ENTER_GETEVENTS (1U << 0) |
| 227 | #define IORING_ENTER_SQ_WAKEUP (1U << 1) | 227 | #define IORING_ENTER_SQ_WAKEUP (1U << 1) |
| 228 | #define IORING_ENTER_SQ_WAIT (1U << 2) | ||
| 228 | 229 | ||
| 229 | /* | 230 | /* |
| 230 | * Passed in for io_uring_setup(2). Copied back with updated info on success | 231 | * Passed in for io_uring_setup(2). Copied back with updated info on success |