Re: [PATCH v10 1/5] srcu: make init_srcu_struct() consistently wrap __init_srcu_struct()
"Gary Guo" <[email protected]> Fri, 10 Jul 2026 14:38:17 +0100
| Newsgroups | org.kernel.vger.rcu,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
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(-)