io_uring: remove req init from io_get_req()
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 8 Apr 2020 05:58:45 +0000 (08:58 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Apr 2020 15:26:28 +0000 (09:26 -0600)
commit0553b8bda8709c47863eab3fff7ac32ad04ca52b
treeaeb5e95790b5cf86ec77d45e578189f4dfd4fce3
parentb1e50e549b1372d9742509230dc4af7dd521d984
io_uring: remove req init from io_get_req()

io_get_req() do two different things: io_kiocb allocation and
initialisation. Move init part out of it and rename into
io_alloc_req(). It's simpler this way and also have better data
locality.

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