Skip to content
Snippets Groups Projects
Commit bfc0aa7a authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/rsrc: add reference count to struct io_mapped_ubuf


Currently there's a single ring owner of a mapped buffer, and hence the
reference count will always be 1 when it's torn down and freed. However,
in preparation for being able to link io_mapped_ubuf to different spots,
add a reference count to manage the lifetime of it.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 021b153f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment