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>
Mon, 22 Mar 2021 13:42:50 +0000 (07:42 -0600)
commit208b07fa8faf7496dccb13586197bdc22a0c5ea1
tree6550afb634047e085f1fc962e3245ef97f22c80c
parent97f31f52f72171f0e263abf3c392a55f708a5147
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