3.11.10.9 -stable review patch. If anyone has any objections, please let me know.
------------------ From: "Mizuma, Masayoshi" <m.miz...@jp.fujitsu.com> commit 7848a4bf51b34f41fcc9bd77e837126d99ae84e3 upstream. soft lockup in freeing gigantic hugepage fixed in commit 55f67141a892 "mm: hugetlb: fix softlockup when a large number of hugepages are freed." can happen in return_unused_surplus_pages(), so let's fix it. Signed-off-by: Masayoshi Mizuma <m.miz...@jp.fujitsu.com> Signed-off-by: Naoya Horiguchi <n-horigu...@ah.jp.nec.com> Cc: Joonsoo Kim <iamjoonsoo....@lge.com> Cc: Michal Hocko <mho...@suse.cz> Cc: Aneesh Kumar <aneesh.ku...@linux.vnet.ibm.com> Cc: KOSAKI Motohiro <kosaki.motoh...@jp.fujitsu.com> Signed-off-by: Andrew Morton <a...@linux-foundation.org> Signed-off-by: Linus Torvalds <torva...@linux-foundation.org> Signed-off-by: Luis Henriques <luis.henriq...@canonical.com> --- mm/hugetlb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index b9f86f8..f8e292a 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1093,6 +1093,7 @@ static void return_unused_surplus_pages(struct hstate *h, while (nr_pages--) { if (!free_pool_huge_page(h, &node_states[N_MEMORY], 1)) break; + cond_resched_lock(&hugetlb_lock); } } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/