]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/memory.c
Revert "console: implement lockdep support for console_lock"
[karo-tx-linux.git] / mm / memory.c
index 49fb1cf0861172b2860538e7c48afa0279087794..bb1369f7b9b4ba8af51d90a40de8f522aa2470dc 100644 (file)
@@ -3711,6 +3711,14 @@ retry:
                if (pmd_trans_huge(orig_pmd)) {
                        unsigned int dirty = flags & FAULT_FLAG_WRITE;
 
+                       /*
+                        * If the pmd is splitting, return and retry the
+                        * the fault.  Alternative: wait until the split
+                        * is done, and goto retry.
+                        */
+                       if (pmd_trans_splitting(orig_pmd))
+                               return 0;
+
                        if (pmd_numa(orig_pmd))
                                return do_huge_pmd_numa_page(mm, vma, address,
                                                             orig_pmd, pmd);