io_uring: fix stalled deferred requests
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 30 Jul 2020 15:43:48 +0000 (18:43 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Jul 2020 17:42:21 +0000 (11:42 -0600)
commitdd9dfcdf5a603680458f5e7b0d2273c66e5417db
tree90233d3073b14593eff346c527258b2785ddef96
parentb2bd1cf99f3e7c8fbf12ea07af2c6998e1209e25
io_uring: fix stalled deferred requests

Always do io_commit_cqring() after completing a request, even if it was
accounted as overflowed on the CQ side. Failing to do that may lead to
not to pushing deferred requests when needed, and so stalling the whole
ring.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c