diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-10-25 18:06:15 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-25 18:58:53 +0200 |
commit | 2b2ed9750fc9d040b9f6d076afcef6f00b6f1f7c (patch) | |
tree | e7688dd8e1ca4f2b2beabda1b9cc9d824724aa76 /arch/s390/Kbuild | |
parent | io_uring: used cached copies of sq->dropped and cq->overflow (diff) | |
download | linux-2b2ed9750fc9d040b9f6d076afcef6f00b6f1f7c.tar.xz linux-2b2ed9750fc9d040b9f6d076afcef6f00b6f1f7c.zip |
io_uring: fix bad inflight accounting for SETUP_IOPOLL|SETUP_SQTHREAD
We currently assume that submissions from the sqthread are successful,
and if IO polling is enabled, we use that value for knowing how many
completions to look for. But if we overflowed the CQ ring or some
requests simply got errored and already completed, they won't be
available for polling.
For the case of IO polling and SQTHREAD usage, look at the pending
poll list. If it ever hits empty then we know that we don't have
anymore pollable requests inflight. For that case, simply reset
the inflight count to zero.
Reported-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/s390/Kbuild')
0 files changed, 0 insertions, 0 deletions