Commit 09e077c
rcu: Mark loads from rcu_state.n_online_cpus
The rcu_state.n_online_cpus value is only ever updated by CPU-hotplug
operations, which are serialized. However, this value is read locklessly.
This commit therefore marks those reads. While in the area, it also
adds ASSERT_EXCLUSIVE_WRITER() calls just in case parallel CPU hotplug
becomes a thing.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>1 parent a542d11 commit 09e077c
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4328 | 4328 | | |
4329 | 4329 | | |
4330 | 4330 | | |
4331 | | - | |
| 4331 | + | |
4332 | 4332 | | |
4333 | 4333 | | |
4334 | 4334 | | |
| |||
4538 | 4538 | | |
4539 | 4539 | | |
4540 | 4540 | | |
| 4541 | + | |
4541 | 4542 | | |
4542 | 4543 | | |
4543 | 4544 | | |
| |||
4806 | 4807 | | |
4807 | 4808 | | |
4808 | 4809 | | |
| 4810 | + | |
4809 | 4811 | | |
4810 | 4812 | | |
4811 | 4813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
| 631 | + | |
| 632 | + | |
632 | 633 | | |
633 | 634 | | |
634 | 635 | | |
| |||
689 | 690 | | |
690 | 691 | | |
691 | 692 | | |
692 | | - | |
| 693 | + | |
| 694 | + | |
693 | 695 | | |
694 | 696 | | |
695 | 697 | | |
| |||
0 commit comments