]> www.infradead.org Git - users/hch/misc.git/commit
io_uring/register: document io_register_resize_rings() shared mem usage
authorJens Axboe <axboe@kernel.dk>
Wed, 15 Jan 2025 15:23:55 +0000 (08:23 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jan 2025 15:34:03 +0000 (08:34 -0700)
commit2c5aae129f427f83eeba5efbfb4e60a777cd073c
tree0b611627a91db9786b49121b0739886bc8ef7eb4
parent8911798d3e8a9624b1acf2882c7a0183694d714d
io_uring/register: document io_register_resize_rings() shared mem usage

It can be a bit hard to tell which parts of io_register_resize_rings()
are operating on shared memory, and which ones are not. And anything
reading or writing to those regions should really use the read/write
once primitives.

Hence add those, ensuring sanity in how this memory is accessed, and
helping document the shared nature of it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/register.c