Re: [PATCH v10 1/5] srcu: make init_srcu_struct() consistently wrap __init_srcu_struct()
From: Gary Guo
Date: Fri Jul 10 2026 - 09:39:38 EST
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 <work@xxxxxxxxxxxxx>
Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>
> ---
> include/linux/srcu.h | 29 ++++++++++++++++++++---------
> kernel/rcu/srcutiny.c | 12 ++++++------
> kernel/rcu/srcutree.c | 11 ++++++-----
> 3 files changed, 32 insertions(+), 20 deletions(-)