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>
Fri, 27 Dec 2024 17:07:05 +0000 (10:07 -0700)
commit49f7a3098cc2406c9cf60d595f4a148d6780bce6
treedeceecfed2ff3eafdf6183232c4b7ae483909a12
parent479b2f4590bebd4a5a5ac9cb4c4803f4edf86768
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