]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - mm/mempolicy.c
mm: thp: check pmd_trans_unstable() after split_huge_pmd()
[mirror_ubuntu-zesty-kernel.git] / mm / mempolicy.c
index 297d6854f84920f4420d5929fd3bc1084dd8a15e..fe90e5051012aa55db9cd13b4e97f84d6d20016f 100644 (file)
@@ -512,6 +512,8 @@ static int queue_pages_pte_range(pmd_t *pmd, unsigned long addr,
                }
        }
 
+       if (pmd_trans_unstable(pmd))
+               return 0;
 retry:
        pte = pte_offset_map_lock(walk->mm, pmd, addr, &ptl);
        for (; addr != end; pte++, addr += PAGE_SIZE) {