]> 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)
commit75c4111b7adbc17c62f1df85ac0d467e7abe6263
tree14af0ed2f0ece33adc851d01b3ed0acafc667e7e
parent3bdd243691f915f67c37a0368faef418c6ec2c74
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