io_uring: provide IORING_ENTER_SQ_WAIT for SQPOLL SQ ring waits
authorJens Axboe <axboe@kernel.dk>
Thu, 3 Sep 2020 18:12:41 +0000 (12:12 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 5 Sep 2020 22:07:36 +0000 (16:07 -0600)
commita72fc07eef557de3d91d7a55849e681ffbf5a572
tree727e16b25fe4e8ee5452c97e707fe13d3c40f5fa
parent6a7bb9ff57449ac6a6350f56af6ebb4e08bebf5d
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.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h