linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: hugetlb: add might_sleep() for gigantic page
@ 2011-12-23 13:41 Hillf Danton
  2011-12-26  7:32 ` KAMEZAWA Hiroyuki
  2011-12-27 12:59 ` Michal Hocko
  0 siblings, 2 replies; 7+ messages in thread
From: Hillf Danton @ 2011-12-23 13:41 UTC (permalink / raw)
  To: linux-mm; +Cc: LKML, Andrew Morton, Michal Hocko, KAMEZAWA Hiroyuki

From: Hillf Danton <dhillf@gmail.com>
Subject: [PATCH] mm: hugetlb: add might_sleep() for gigantic page

Like the case of huge page, might_sleep() is added for gigantic page, then
both are treated in same way.

Cc: Michal Hocko <mhocko@suse.cz>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- a/mm/hugetlb.c	Tue Dec 20 21:26:30 2011
+++ b/mm/hugetlb.c	Fri Dec 23 21:19:18 2011
@@ -401,6 +401,7 @@ static void copy_gigantic_page(struct pa
 	struct page *dst_base = dst;
 	struct page *src_base = src;

+	might_sleep();
 	for (i = 0; i < pages_per_huge_page(h); ) {
 		cond_resched();
 		copy_highpage(dst, src);

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-12-27 13:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-23 13:41 [PATCH] mm: hugetlb: add might_sleep() for gigantic page Hillf Danton
2011-12-26  7:32 ` KAMEZAWA Hiroyuki
2011-12-27 12:59 ` Michal Hocko
2011-12-27 13:21   ` Hillf Danton
2011-12-27 13:30     ` Michal Hocko
2011-12-27 13:38       ` Hillf Danton
2011-12-27 13:39         ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox