aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2019-08-06 20:15:38 -0300
committerJason Gunthorpe <[email protected]>2019-08-16 11:44:48 -0300
commit56c57103db17db9ecdad0507a3f0e3eea747fabe (patch)
tree7615cdd6e0936d1739b42983f3ec19b81fac1ca0 /tools/perf/scripts/python
parent9c240a7bb33787d4fed56508425ae0b2936b1674 (diff)
mm/mmu_notifiers: hoist do_mmu_notifier_register down_write to the caller
This simplifies the code to not have so many one line functions and extra logic. __mmu_notifier_register() simply becomes the entry point to register the notifier, and the other one calls it under lock. Also add a lockdep_assert to check that the callers are holding the lock as expected. Link: https://lore.kernel.org/r/[email protected] Suggested-by: Christoph Hellwig <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Ralph Campbell <[email protected]> Tested-by: Ralph Campbell <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions