io_uring: move all request init code in one place
commitef4ff581102a917a69877feca2e5347e2f3e458c
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 11 Apr 2020 23:05:05 +0000 (12 02:05 +0300)
committerJens Axboe <axboe@kernel.dk>
Sun, 12 Apr 2020 14:46:50 +0000 (12 08:46 -0600)
tree47e59da1e94e50692e8107e5ca7a9c7901b36e1f
parentdea3b49c7fb09b4f6b6a574c0485ffeb9df7b69c
io_uring: move all request init code in one place

Requests initialisation is scattered across several functions, namely
io_init_req(), io_submit_sqes(), io_submit_sqe(). Put it
in io_init_req() for better data locality and code clarity.

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