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)
commitca0a26511c679a797f86589894a4523db36d833e
tree14af0ed2f0ece33adc851d01b3ed0acafc667e7e
parent46fe18b16c4656969347fc0a3d83a034e47d9119
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