Message ID | 1397777470-8114-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 0f5e584..db8bc0a 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1464,6 +1464,7 @@ static unsigned long set_max_huge_pages(struct hstate *h, unsigned long count, while (min_count < persistent_huge_pages(h)) { if (!free_pool_huge_page(h, nodes_allowed, 0)) break; + cond_resched_lock(&hugetlb_lock); } while (count < persistent_huge_pages(h)) { if (!adjust_pool_surplus(h, nodes_allowed, 1))