]> Gentwo Git Trees - linux/.git/commit
io_uring: add async data clear/free helpers
authorJens Axboe <axboe@kernel.dk>
Fri, 22 Aug 2025 14:19:56 +0000 (08:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Aug 2025 17:24:25 +0000 (11:24 -0600)
commit4c0b26e23c79ecf934a92b2d9a516bffbb61c3e4
treeb7902b44c0e98b37062e50db2012a703dd9bb241
parentc986f7586b8d3381ab0ce764136c3b951c618381
io_uring: add async data clear/free helpers

Futex recently had an issue where it mishandled how ->async_data and
REQ_F_ASYNC_DATA is handled. To avoid future issues like that, add a set
of helpers that either clear or clear-and-free the async data assigned
to a struct io_kiocb.

Convert existing manual handling of that to use the helpers. No intended
functional changes in this patch.

Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/futex.c
io_uring/io_uring.h
io_uring/net.c
io_uring/rw.c
io_uring/uring_cmd.c
io_uring/waitid.c