io_uring: add helper flushing locked_free_list
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 19 Mar 2021 17:22:39 +0000 (17:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 4 Apr 2021 21:27:22 +0000 (15:27 -0600)
commit37ca22dacade1eaf25d641369341b5d65c694f33
tree3c33bdcfc0672786492e251314df04750e97ea0c
parente131d8b6cce25703970ea5819af35d9ee32aae99
io_uring: add helper flushing locked_free_list

Add a new helper io_flush_cached_locked_reqs() that splices
locked_free_list to free_list, and does it right doing all sync and
invariant reinit.

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