|
@@ -3023,8 +3023,10 @@ void split_huge_pmd_address(struct vm_area_struct *vma, unsigned long address,
|
|
|
return;
|
|
|
|
|
|
/*
|
|
|
- * Caller holds the mmap_sem write mode, so a huge pmd cannot
|
|
|
- * materialize from under us.
|
|
|
+ * Caller holds the mmap_sem write mode or the anon_vma lock,
|
|
|
+ * so a huge pmd cannot materialize from under us (khugepaged
|
|
|
+ * holds both the mmap_sem write mode and the anon_vma lock
|
|
|
+ * write mode).
|
|
|
*/
|
|
|
__split_huge_pmd(vma, pmd, address, freeze);
|
|
|
}
|