diff options
| author | Mateusz Guzik <[email protected]> | 2024-08-28 18:07:04 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-09 16:39:02 -0700 |
| commit | 83362d223762fcb4048f135423862c760aa2780f (patch) | |
| tree | beadb300c4371eb05188f779afd2bb45acdd5ad5 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 15444054a537aca115bb077a77e99a9cc5ae11e6 (diff) | |
mm/hugetlb: sort out global lock annotations
The mutex array pointer shares a cacheline with the spinlock:
ffffffff84187480 B hugetlb_fault_mutex_table
ffffffff84187488 B hugetlb_lock
This is because the former is annotated with a macro forcing cacheline
alignment. I suspect it was meant to be the variant which on top of it
makes sure the object does not share the cacheline with anyone.
Since array pointer itself is de facto read-only such an annotation does
not make sense there anyway. Instead mark it __ro_after_init along with
the size var.
Do however move the spinlock out of the way.
[[email protected]: move section directives to the end of the definitions, per convention]
[[email protected]: DEFINE_SPINLOCK doesn't permit section modifiers at end-of-definition]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Mateusz Guzik <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions