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>
Thu, 25 Mar 2021 16:24:22 +0000 (10:24 -0600)
commite050c0535a9adf120ecdd6d2fab362e33779a9f5
treef8cf72ed904f797f707c8fd51fe83f1688adacce
parent10418ad07a7feb5f877f682d864dfdd9ce021e22
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