| From nobody Mon Sep 17 00:00:00 2001 |
| From: Christoph Lameter <clameter@sgi.com> |
| Date: Thu, 20 Apr 2006 02:43:12 -0700 |
| Subject: Remove cond_resched in gather_stats() |
| |
| gather_stats() is called with a spinlock held from check_pte_range. We |
| cannot reschedule with a lock held. |
| |
| Signed-off-by: Christoph Lameter <clameter@sgi.com> |
| Signed-off-by: Andrew Morton <akpm@osdl.org> |
| Signed-off-by: Linus Torvalds <torvalds@osdl.org> |
| Signed-off-by: Chris Wright <chrisw@sous-sol.org> |
| |
| --- |
| mm/mempolicy.c | 1 - |
| 1 file changed, 1 deletion(-) |
| |
| --- linux-2.6.16.16.orig/mm/mempolicy.c |
| +++ linux-2.6.16.16/mm/mempolicy.c |
| @@ -1796,7 +1796,6 @@ static void gather_stats(struct page *pa |
| md->mapcount_max = count; |
| |
| md->node[page_to_nid(page)]++; |
| - cond_resched(); |
| } |
| |
| #ifdef CONFIG_HUGETLB_PAGE |