diff options
| author | Kairui Song <[email protected]> | 2022-12-20 02:58:37 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-01-18 17:12:44 -0800 |
| commit | 3f79b187ad2f677047a1f1104bfb8a81b58b67d5 (patch) | |
| tree | c8e8abd6d245bc1efbc633c6e449e7828dcce950 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 497b099d9a166f819e667f4bf258e7a00ea2e78a (diff) | |
swapfile: get rid of volatile and avoid redundant read
Patch series "Clean up and fixes for swap", v2.
This series cleans up some code paths, saves a few cycles and reduces the
object size by a bit. It also fixes some rare race issue with statistics.
This patch (of 4):
Convert a volatile variable to more readable READ_ONCE. And this actually
avoids the code from reading the variable twice redundantly when it races.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kairui Song <[email protected]>
Reviewed-by: "Huang, Ying" <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Miaohe Lin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions