io_uring: Add generic helper to allocate async data
authorGabriel Krisman Bertazi <krisman@suse.de>
Mon, 16 Dec 2024 20:46:08 +0000 (15:46 -0500)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Dec 2024 20:47:47 +0000 (13:47 -0700)
commit694022b01368387cc1ed8485e279dfe27939ee43
tree1641fccf61f10284a24a82285af1d2b603213700
parentb1031968b14f83f4bb96ecc4de4f6350ae0f6dad
io_uring: Add generic helper to allocate async data

This helper replaces io_alloc_async_data by using the folded allocation.
Do it in a header to allow the compiler to decide whether to inline.

Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Link: https://lore.kernel.org/r/20241216204615.759089-3-krisman@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.h