io_uring: refactor io_flush_cached_reqs()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 19 Mar 2021 17:22:35 +0000 (17:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:42:50 +0000 (07:42 -0600)
commit2b3cde03e323a729db1bf79dc12ec69a16331ec3
tree0bbf7b06ee09c8d4ede2ccafa0705baf45959478
parentf9e6fab247d8b34a4ff6113cd18c137c9ea5da45
io_uring: refactor io_flush_cached_reqs()

Emphasize that return value of io_flush_cached_reqs() depends on number
of requests in the cache. It looks nicer and might help tools from
false-negative analyses.

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