]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: improve submit_state.ios_left accounting
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 10 Oct 2020 17:34:09 +0000 (18:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 10 Oct 2020 18:49:25 +0000 (12:49 -0600)
commit97c94c322325d57cf5c80824ed2a2275890c6640
tree641088f0845311cdbfc839982b6b0a55351ff63c
parentbd99d649a0ae2c75699500bb84e4012d0a922bbc
io_uring: improve submit_state.ios_left accounting

state->ios_left isn't decremented for requests that don't need a file,
so it might be larger than number of SQEs left. That in some
circumstances makes us to grab more files that is needed so imposing
extra put.
Deaccount one ios_left for each request.

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