diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-06-03 11:19:10 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-06-16 14:54:55 -0600 |
commit | 60b6c075e8eb8bd23c106e2ab13370a146a94a5b (patch) | |
tree | c0e9290454a312d572705bbb9f6d242a5ba32605 /io_uring/eventfd.h | |
parent | f4eaf8eda89e1ae5d8274297094687245293deff (diff) | |
download | lwn-60b6c075e8eb8bd23c106e2ab13370a146a94a5b.tar.gz lwn-60b6c075e8eb8bd23c106e2ab13370a146a94a5b.zip |
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: 21a091b970cd ("io_uring: signal registered eventfd to process deferred task work")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/eventfd.h')
0 files changed, 0 insertions, 0 deletions