Skip to contentSkip to conversation

+ mm-hugetlbc-add-cond_resched_lock-in-return_unused_surplus_pages.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Apr 9, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-hugetlbc-add-cond_resched_lock-in-return_unused_surplus_pages.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 09 Apr 2014 12:21:02 -0700

The patch titled
Subject: mm/hugetlb.c: add cond_resched_lock() in return_unused_surplus_pages()
has been added to the -mm tree. Its filename is
mm-hugetlbc-add-cond_resched_lock-in-return_unused_surplus_pages.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-hugetlbc-add-cond_resched_lock-in-return_unused_surplus_pages.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-hugetlbc-add-cond_resched_lock-in-return_unused_surplus_pages.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: "Mizuma, Masayoshi" <[email protected]>
Subject: mm/hugetlb.c: add cond_resched_lock() in return_unused_surplus_pages()

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.

---

 mm/hugetlb.c |    1 +
 1 file changed, 1 insertion(+)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlbc-add-cond_resched_lock-in-return_unused_surplus_pages +1 -0
diff -puN mm/hugetlb.c~mm-hugetlbc-add-cond_resched_lock-in-return_unused_surplus_pages mm/hugetlb.c
@@ -1173,6 +1173,7 @@ static void return_unused_surplus_pages(
 	while (nr_pages--) {
 		if (!free_pool_huge_page(h, &node_states[N_MEMORY], 1))
 			break;
+		cond_resched_lock(&hugetlb_lock);
 	}
 }
 

_

Patches currently in -mm which might be from [email protected] are

origin.patch mm-hugetlbc-add-cond_resched_lock-in-return_unused_surplus_pages.patch