aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMel Gorman <[email protected]>2009-12-14 17:59:53 -0800
committerLinus Torvalds <[email protected]>2009-12-15 08:53:23 -0800
commit4eb2b1dcd598f8489130405c81c60c289896d92a (patch)
tree87bf0dec35f55688595447de65eb95952eb3dabc /tools/perf/scripts/python
parent70da2340fbc68e91e701762f785479ab495a0869 (diff)
hugetlb: acquire the i_mmap_lock before walking the prio_tree to unmap a page
When the owner of a mapping fails COW because a child process is holding a reference, the children VMAs are walked and the page is unmapped. The i_mmap_lock is taken for the unmapping of the page but not the walking of the prio_tree. In theory, that tree could be changing if the lock is not held. This patch takes the i_mmap_lock properly for the duration of the prio_tree walk. [[email protected]: Spotted the problem in the first place] Signed-off-by: Mel Gorman <[email protected]> Acked-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions