]> 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)
commitf974ceb89dfe7c61ff487f1802b41d038a1ba43b
treeaeb5e95790b5cf86ec77d45e578189f4dfd4fce3
parent83e84ee49bd812221e65b62a04669180ff7cb1ba
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