Forum | Documentation | Website | Blog

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

io_uring/eventfd: move to more idiomatic RCU free usage

In some ways, it just "happens to work" currently with using the ops
field for both the free and signaling bit. But it depends on ordering
of operations in terms of freeing and signaling. Clean it up and use the
usual refs == 0 under RCU read side lock to determine if the ev_fd is
still valid, and use the reference to gate the freeing as well.

Fixes: 21a091b9

 ("io_uring: signal registered eventfd to process deferred task work")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f4eaf8ed
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment