]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Thu, 1 Oct 2020 02:32:33 +0000 (20:32 -0600)
commit7c8816314b79d9980144c915e3f006fef538a516
tree84e9f46f6ffba3498620134c8b9761c26e5d4146
parent4b973816e1aa23c11b88116cfc96715b20522d04
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