[PATCH] Remove cond_resched in gather_stats()
authorChristoph Lameter <clameter@sgi.com>
Thu, 20 Apr 2006 09:43:12 +0000 (02:43 -0700)
committerChris Wright <chrisw@sous-sol.org>
Sat, 20 May 2006 22:00:32 +0000 (15:00 -0700)
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

index b21869a39f0b0380265fb3bd9e0ed885a29afa0d..8d7ddf0df36b8749debbcb21888d27ce0f85c39a 100644 (file)
@@ -1796,7 +1796,6 @@ static void gather_stats(struct page *page, void *private, int pte_dirty)
                md->mapcount_max = count;
 
        md->node[page_to_nid(page)]++;
-       cond_resched();
 }
 
 #ifdef CONFIG_HUGETLB_PAGE