diff options
| author | Arjun Roy <[email protected]> | 2020-06-25 20:30:01 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-06-26 00:27:37 -0700 |
| commit | 7f70c2a68a51496289df163f6969d4db7c383f30 (patch) | |
| tree | 9acf8e8fac975ee9a01806f2f03273fab17bf98d /tools/perf/scripts/python/task-analyzer.py | |
| parent | 243bce09c91b0145aeaedd5afba799d81841c030 (diff) | |
mm/memory.c: properly pte_offset_map_lock/unlock in vm_insert_pages()
Calls to pte_offset_map() in vm_insert_pages() are erroneously not
matched with a call to pte_unmap(). This would cause problems on
architectures where that is not a no-op.
This patch does away with the non-traditional locking in the existing
code, and instead uses pte_offset_map_lock/unlock() as usual,
incrementing PTE as necessary. The PTE pointer is kept within bounds
since we clamp it with PTRS_PER_PTE.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 8cd3984d81d5 ("mm/memory.c: add vm_insert_pages()")
Signed-off-by: Arjun Roy <[email protected]>
Acked-by: David Rientjes <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Soheil Hassas Yeganeh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions