diff options
| author | Hillf Danton <[email protected]> | 2012-01-10 15:07:20 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-01-10 16:30:42 -0800 |
| commit | a734bcc812146cfba530e1adaf609fce1357982e (patch) | |
| tree | 021fb4187985de65744a3f8f831a5f07130f2e2e /tools/perf/scripts/python/sctop.py | |
| parent | 5f8aefd44e64ed2f6950a1dcc77309b7dd9979f4 (diff) | |
hugetlb: detect race upon page allocation failure during COW
Currently we are not rechecking pte_same in hugetlb_cow after we take ptl
lock again in the page allocation failure code path and simply retry
again. This is not an issue at the moment because hugetlb fault path is
protected by hugetlb_instantiation_mutex so we cannot race.
The original page is locked and so we cannot race even with the page
migration.
Let's add the pte_same check anyway as we want to be consistent with the
other check later in this function and be safe if we ever remove the
mutex.
[[email protected]: reworded the changelog]
Signed-off-by: Hillf Danton <[email protected]>
Signed-off-by: Michal Hocko <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions