diff options
-rw-r--r-- | mm/memory.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/memory.c b/mm/memory.c index 49fb1cf08611..bb1369f7b9b4 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -3711,6 +3711,14 @@ retry: | |||
3711 | if (pmd_trans_huge(orig_pmd)) { | 3711 | if (pmd_trans_huge(orig_pmd)) { |
3712 | unsigned int dirty = flags & FAULT_FLAG_WRITE; | 3712 | unsigned int dirty = flags & FAULT_FLAG_WRITE; |
3713 | 3713 | ||
3714 | /* | ||
3715 | * If the pmd is splitting, return and retry the | ||
3716 | * the fault. Alternative: wait until the split | ||
3717 | * is done, and goto retry. | ||
3718 | */ | ||
3719 | if (pmd_trans_splitting(orig_pmd)) | ||
3720 | return 0; | ||
3721 | |||
3714 | if (pmd_numa(orig_pmd)) | 3722 | if (pmd_numa(orig_pmd)) |
3715 | return do_huge_pmd_numa_page(mm, vma, address, | 3723 | return do_huge_pmd_numa_page(mm, vma, address, |
3716 | orig_pmd, pmd); | 3724 | orig_pmd, pmd); |