[PATCH 05/13] srcutree: Honor is_atomic in check_init_srcu_struct()
From: Kunwu Chan
Date: Mon Sep 07 2026 - 04:06:04 EST
From: Kunwu Chan <kunwu.chan@xxxxxxxxx>
check_init_srcu_struct() drops its is_atomic argument, passing
hard-coded false to init_srcu_struct_fields(). Pass is_atomic through
instead.
Signed-off-by: Kunwu Chan <kunwu.chan@xxxxxxxxx>
---
kernel/rcu/srcutree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c
index 533607de5728..2af36db37fa9 100644
--- a/kernel/rcu/srcutree.c
+++ b/kernel/rcu/srcutree.c
@@ -522,7 +522,7 @@ static void check_init_srcu_struct(struct srcu_struct *ssp, bool is_atomic)
raw_spin_unlock_irqrestore_rcu_node(ssp->srcu_sup, flags);
return;
}
- init_srcu_struct_fields(ssp, true, false);
+ init_srcu_struct_fields(ssp, true, is_atomic);
raw_spin_unlock_irqrestore_rcu_node(ssp->srcu_sup, flags);
}
--
2.43.0