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>
Sun, 11 Apr 2021 23:41:58 +0000 (17:41 -0600)
commitdd78f49260dd49f21bbf12080cceb8e13ce53db3
tree086b78265dc219900dda3a7315b6e7ac25ecbb4c
parent1840038e119573fc624a2fc586a1c5ced50b59f2
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