aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIra Weiny <[email protected]>2020-10-13 16:52:33 -0700
committerLinus Torvalds <[email protected]>2020-10-13 18:38:30 -0700
commit433e7d3177544c8cf0b6375abd310b0ef023fe9d (patch)
tree3afd4553d29a14577a9caa53caaca2b78de85156 /tools/perf/scripts/python
parent822bca52ee7eb279acfba261a423ed7ac47d6f73 (diff)
mm/memremap.c: convert devmap static branch to {inc,dec}
While reviewing Protection Key Supervisor support it was pointed out that using a counter to track static branch enable was an anti-pattern which was better solved using the provided static_branch_{inc,dec} functions.[1] Fix up devmap_managed_key to work the same way. Also this should be safer because there is a very small (very unlikely) race when multiple callers try to enable at the same time. [1] https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Ira Weiny <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Reviewed-by: William Kucharski <[email protected]> Cc: Dan Williams <[email protected]> Cc: Vishal Verma <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions