io_uring/eventfd: clean up rcu locking
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 24 Apr 2025 11:31:17 +0000 (12:31 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Apr 2025 14:33:54 +0000 (08:33 -0600)
commitda01f60f8ad144a8a0844833a8d0f0005b0a7c51
tree8385a809cbbb528c3d9b906fac4dc5816fbc78b5
parent62f666df765ecaf9cc1892ca056d5c071a335d85
io_uring/eventfd: clean up rcu locking

Conditional locking is never welcome if there are better options. Move
rcu locking into io_eventfd_signal(), make it unconditional and use
guards. It also helps with sparse warnings.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/91a925e708ca8a5aa7fee61f96d29b24ea9adeaf.1745493845.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/eventfd.c