On Sat Jun 13, 2026 at 7:40 AM BST, Onur Özkan wrote:
> Restructure the SRCU initialization functions so it always follows
> one direction:
> 
>     init_srcu_struct() -> __init_srcu_struct() -> lockdep or generic
> 
> This uses the same wrapper style as mutex. It avoids the old confusing
> style where init_srcu_struct() and __init_srcu_struct() called each
> other in different configs. It also helps Rust side to have simpler
> helper for SRCU initialization.
> 
> Signed-off-by: Onur Özkan <[email protected]>

Reviewed-by: Gary Guo <[email protected]>

> ---
>  include/linux/srcu.h  | 29 ++++++++++++++++++++---------
>  kernel/rcu/srcutiny.c | 12 ++++++------
>  kernel/rcu/srcutree.c | 11 ++++++-----
>  3 files changed, 32 insertions(+), 20 deletions(-)


Reply via email to