* [PATCH] mm/hugetlb.c: add cond_resched_lock() in return_unused_surplus_pages() [not found] ` <6B2BA408B38BA1478B473C31C3D2074E30981E3EDC@SV-EXCHANGE1.Corp.FC.LOCAL> @ 2014-04-08 21:46 ` Naoya Horiguchi [not found] ` <1396993585-zmuon97j@n-horiguchi@ah.jp.nec.com> 1 sibling, 0 replies; 2+ messages in thread From: Naoya Horiguchi @ 2014-04-08 21:46 UTC (permalink / raw) To: akpm, Motohiro.Kosaki Cc: mhocko, kosaki.motohiro, iamjoonsoo.kim, aneesh.kumar, m.mizuma, linux-mm On Tue, Apr 08, 2014 at 02:21:22PM -0700, Motohiro Kosaki wrote: > Naoya > > > -----Original Message----- > > From: Naoya Horiguchi [mailto:n-horiguchi@ah.jp.nec.com] > > Sent: Tuesday, April 08, 2014 5:20 PM > > To: akpm@linux-foundation.org > > Cc: mhocko@suse.cz; Motohiro Kosaki JP; iamjoonsoo.kim@lge.com; aneesh.kumar@linux.vnet.ibm.com; m.mizuma@jp.fujitsu.com > > Subject: Re: [merged] mm-hugetlb-fix-softlockup-when-a-large-number-of-hugepages-are-freed.patch removed from -mm tree > > > > Hi Andrew, > > # off list > > > > This patch is obsolete and latest version is ver.2. > > http://www.spinics.net/lists/linux-mm/msg71283.html > > Could you queue the new one to go to mainline? > > [merged] mean the patch has already been merged the linus tree. So, it can be changed. Please make > an incremental patch. Here it is. Thanks, Naoya Horiguchi --- Subject: [PATCH] mm/hugetlb.c: add cond_resched_lock() in return_unused_surplus_pages() From: "Mizuma, Masayoshi" <m.mizuma@jp.fujitsu.com> 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.mizuma@jp.fujitsu.com> Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: Aneesh Kumar <aneesh.kumar@linux.vnet.ibm.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: <stable@vger.kernel.org> --- diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 7d57af2..761ef5b 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1160,6 +1160,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); } } -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <1396993585-zmuon97j@n-horiguchi@ah.jp.nec.com>]
* Re: [PATCH] mm/hugetlb.c: add cond_resched_lock() in return_unused_surplus_pages() [not found] ` <1396993585-zmuon97j@n-horiguchi@ah.jp.nec.com> @ 2014-04-08 23:57 ` Masayoshi Mizuma 0 siblings, 0 replies; 2+ messages in thread From: Masayoshi Mizuma @ 2014-04-08 23:57 UTC (permalink / raw) To: Naoya Horiguchi, akpm, Motohiro.Kosaki Cc: mhocko, kosaki.motohiro, iamjoonsoo.kim, aneesh.kumar, linux-mm Hi Naoya, On Tue, 8 Apr 2014 17:46:25 -0400 Naoya Horiguchi wrote: > On Tue, Apr 08, 2014 at 02:21:22PM -0700, Motohiro Kosaki wrote: >> Naoya >> >>> -----Original Message----- >>> From: Naoya Horiguchi [mailto:n-horiguchi@ah.jp.nec.com] >>> Sent: Tuesday, April 08, 2014 5:20 PM >>> To: akpm@linux-foundation.org >>> Cc: mhocko@suse.cz; Motohiro Kosaki JP; iamjoonsoo.kim@lge.com; aneesh.kumar@linux.vnet.ibm.com; m.mizuma@jp.fujitsu.com >>> Subject: Re: [merged] mm-hugetlb-fix-softlockup-when-a-large-number-of-hugepages-are-freed.patch removed from -mm tree >>> >>> Hi Andrew, >>> # off list >>> >>> This patch is obsolete and latest version is ver.2. >>> http://www.spinics.net/lists/linux-mm/msg71283.html >>> Could you queue the new one to go to mainline? >> >> [merged] mean the patch has already been merged the linus tree. So, it can be changed. Please make >> an incremental patch. > > Here it is. Thank you for posting this incremental patch! Thanks, Masayoshi Mizuma > > Thanks, > Naoya Horiguchi > --- > Subject: [PATCH] mm/hugetlb.c: add cond_resched_lock() in return_unused_surplus_pages() > > From: "Mizuma, Masayoshi" <m.mizuma@jp.fujitsu.com> > > 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.mizuma@jp.fujitsu.com> > Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> > Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> > Cc: Michal Hocko <mhocko@suse.cz> > Cc: Aneesh Kumar <aneesh.kumar@linux.vnet.ibm.com> > Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> > Cc: <stable@vger.kernel.org> > --- > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index 7d57af2..761ef5b 100644 > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -1160,6 +1160,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); > } > } > > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-08 23:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <534462dd./BWAtkVlKQGnheFN%akpm@linux-foundation.org>
[not found] ` <1396991970-aj1xjt2j@n-horiguchi@ah.jp.nec.com>
[not found] ` <6B2BA408B38BA1478B473C31C3D2074E30981E3EDC@SV-EXCHANGE1.Corp.FC.LOCAL>
2014-04-08 21:46 ` [PATCH] mm/hugetlb.c: add cond_resched_lock() in return_unused_surplus_pages() Naoya Horiguchi
[not found] ` <1396993585-zmuon97j@n-horiguchi@ah.jp.nec.com>
2014-04-08 23:57 ` Masayoshi Mizuma
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox