diff --git a/mm/hugetlb.c b/mm/hugetlb.c index ead99b38472aa9f9356853bd37b21cdd8c1a5456..5234ee0615bb61b235927fb56ba22238d60a30e2 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -7144,6 +7144,8 @@ long hugetlb_change_protection(struct vm_area_struct *vma, psize); } spin_unlock(ptl); + + cond_resched(); } /* * Must flush TLB before releasing i_mmap_rwsem: x86's huge_pmd_unshare