]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4dc5c769164d4afc732e6306048cb3d5af3f37bf
treeaeb5e95790b5cf86ec77d45e578189f4dfd4fce3
parent28097dc4927a7f2571081dcb57453c11efe4731c
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