aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorSuren Baghdasaryan <[email protected]>2023-08-04 08:27:24 -0700
committerAndrew Morton <[email protected]>2023-08-21 13:37:46 -0700
commitc9d6e982c3f8703c24f488d3de15e0ee97f4655e (patch)
treebbc0499be0e5660132dd59ab08b360960db24691 /tools/perf/scripts/python/netdev-times.py
parentad9f006351c3368171458ae7ab14d72f031b239f (diff)
mm: move vma locking out of vma_prepare and dup_anon_vma
vma_prepare() is currently the central place where vmas are being locked before vma_complete() applies changes to them. While this is convenient, it also obscures vma locking and makes it harder to follow the locking rules. Move vma locking out of vma_prepare() and take vma locks explicitly at the locations where vmas are being modified. Move vma locking and replace it with an assertion inside dup_anon_vma() to further clarify the locking pattern inside vma_merge(). Link: https://lkml.kernel.org/r/[email protected] Suggested-by: Linus Torvalds <[email protected]> Suggested-by: Liam R. Howlett <[email protected]> Signed-off-by: Suren Baghdasaryan <[email protected]> Cc: Jann Horn <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions