aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2015-11-05 18:48:14 -0800
committerLinus Torvalds <[email protected]>2015-11-05 19:34:48 -0800
commit87e8827b37c0c391d9915d0dc6a06c9b5f9cac65 (patch)
tree9164f29c1f758212177668b95eb3363bda501240 /tools/perf/scripts/python/export-to-postgresql.py
parent9fd745d450e7e2b0d2f1b386b886e7d568b64404 (diff)
mm: fix the racy mm->locked_vm change in
"mm->locked_vm += grow" and vm_stat_account() in acct_stack_growth() are not safe; multiple threads using the same ->mm can do this at the same time trying to expans different vma's under down_read(mmap_sem). This means that one of the "locked_vm += grow" changes can be lost and we can miss munlock_vma_pages_all() later. Move this code into the caller(s) under mm->page_table_lock. All other updates to ->locked_vm hold mmap_sem for writing. Signed-off-by: Oleg Nesterov <[email protected]> Acked-by: Hugh Dickins <[email protected]> Cc: Andrey Konovalov <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: "Kirill A. Shutemov" <[email protected]> Cc: Sasha Levin <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions