]> git.ipfire.org Git - thirdparty/linux.git/commit
srcu: Use suitable gfp_flags for the init_srcu_struct_nodes()
authorZqiang <qiang.zhang@linux.dev>
Thu, 1 Jan 2026 16:34:11 +0000 (11:34 -0500)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 7 Jan 2026 13:59:41 +0000 (21:59 +0800)
commitcee2557ae3b19e0cdfa09695a4d6ba420cc1fd41
tree97276103f8ff6c75634a034c93bc45009dcdfe73
parentd41e37f26b3157b3f1d10223863519a943aa239b
srcu: Use suitable gfp_flags for the init_srcu_struct_nodes()

For use the init_srcu_struct*() to initialized srcu structure,
the srcu structure's->srcu_sup and sda use GFP_KERNEL flags to
allocate memory. similarly, if set SRCU_SIZING_INIT, the
srcu_sup's->node can still use GFP_KERNEL flags to allocate
memory, not need to use GFP_ATOMIC flags all the time.

Signed-off-by: Zqiang <qiang.zhang@linux.dev>
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Tested-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/srcutree.c