io_uring/rw: allocate async data in io_prep_rw()
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 24 Feb 2025 19:45:03 +0000 (19:45 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 25 Feb 2025 14:43:05 +0000 (07:43 -0700)
commitc72282dd865ee66bc1b8fbc843deefe53beb426c
tree733b07a28c1044e2fc8bc355517a2d861cac47ea
parentc457eed55d80bc06c2c55cd5d7a4646f102db5d4
io_uring/rw: allocate async data in io_prep_rw()

rw always allocates async_data, so instead of doing that deeper in prep
calls inside of io_prep_rw_setup(), be a bit more explicit and do that
early on in io_prep_rw().

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