mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
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>
This commit is contained in:
parent
cb38f82043
commit
c93773c1a3
1 changed files with 2 additions and 0 deletions
|
@ -248,6 +248,8 @@ static inline void __list_splice_init_rcu(struct list_head *list,
|
|||
*/
|
||||
|
||||
sync();
|
||||
ASSERT_EXCLUSIVE_ACCESS(*first);
|
||||
ASSERT_EXCLUSIVE_ACCESS(*last);
|
||||
|
||||
/*
|
||||
* Readers are finished with the source list, so perform splice.
|
||||
|
|
Loading…
Add table
Reference in a new issue