]> Gentwo Git Trees - linux/.git/commit
rcu: use WRITE_ONCE() for ->next and ->pprev of hlist_nulls
authorXuanqiang Luo <luoxuanqiang@kylinos.cn>
Wed, 5 Nov 2025 20:19:57 +0000 (12:19 -0800)
committerFrederic Weisbecker <frederic@kernel.org>
Wed, 5 Nov 2025 23:03:06 +0000 (00:03 +0100)
commit34e82569d59391bf7d808a558ff631c4428b026d
treecf6977fee65b76fdf70895fa0d7969d14713df1f
parente52b43883d084a9af263c573f2a1bd1ca5088389
rcu: use WRITE_ONCE() for ->next and ->pprev of hlist_nulls

In rculist_nulls.h we can still see ordinary assignments to ->pprev and
->next of hlist_nulls.

As noted in the two patches below:
commit efd04f8a8b45 ("rcu: Use WRITE_ONCE() for assignments to ->next for
rculist_nulls")
commit 860c8802ace1 ("rcu: Use WRITE_ONCE() for assignments to ->pprev for
hlist_nulls")

We should use WRITE_ONCE().

Signed-off-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
include/linux/rculist_nulls.h