io_uring: refactor io_submit_flush_completions
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 26 Jun 2021 20:40:48 +0000 (21:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 20:15:40 +0000 (14:15 -0600)
commit5182ed2e332e8e11fa3c1649ef6d6546ccca64d0
tree95caf50279be038b71be46705197c66ef8be3128
parent4cfb25bf8877c947e5ae4875e387babe87e12afa
io_uring: refactor io_submit_flush_completions

Don't init req_batch before we actually need it. Also, add a small clean
up for req declaration.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/ad85512e12bd3a20d521e9782750300970e5afc8.1624739600.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c