]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/linux/rculist.h
rculist: Add ASSERT_EXCLUSIVE_ACCESS() to __list_splice_init_rcu()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 12 Feb 2020 21:29:15 +0000 (13:29 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:04:48 +0000 (12:04 -0700)
commitc93773c1a3fedf6c3f6fa12833e2b74a9897c3e3
treefcef149dd6475a765ffe742467188f48b04b986a
parentcb38f82043d1641a27f96b58b402ca4b7a88f52d
rculist: Add ASSERT_EXCLUSIVE_ACCESS() to __list_splice_init_rcu()

After the sync() in __list_splice_init_rcu(), there should be no
readers traversing the old list.  This commit therefore enlists the
help of KCSAN to verify this condition via a pair of calls to
ASSERT_EXCLUSIVE_ACCESS().

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Marco Elver <elver@google.com>
include/linux/rculist.h