]> www.infradead.org Git - users/dwmw2/linux.git/commit
rcu: Better define "atomic" for list replacement
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 3 Jul 2024 01:49:35 +0000 (18:49 -0700)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Wed, 31 Jul 2024 15:48:57 +0000 (21:18 +0530)
commit9aed3b51fd6186582a95abd9fa67782982540749
tree8e25b27c02159e516430a06811786bc9227ec886
parent3471e96bcf53731639587580fd02e5a297940b91
rcu: Better define "atomic" for list replacement

The kernel-doc headers for list_replace_rcu() and hlist_replace_rcu()
claim that the replacement is atomic, which it is, but only for readers.
Avoid confusion by making it clear that the atomic nature of these
functions applies only to readers, not to concurrent updaters.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
include/linux/rculist.h