]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't keep looping for more events if we can't flush overflow
authorJens Axboe <axboe@kernel.dk>
Fri, 5 Mar 2021 00:15:48 +0000 (17:15 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Mar 2021 15:43:09 +0000 (08:43 -0700)
commit551171896b3d040634c59a6a473990e46f65e4ca
tree14af0ed2f0ece33adc851d01b3ed0acafc667e7e
parent43fb2b852ea5d6b7fcbd19261d85e638d52d074f
io_uring: don't keep looping for more events if we can't flush overflow

It doesn't make sense to wait for more events to come in, if we can't
even flush the overflow we already have to the ring. Return -EBUSY for
that condition, just like we do for attempts to submit with overflow
pending.

Cc: stable@vger.kernel.org # 5.11
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c