From: Christoph Lameter Date: Thu, 20 Apr 2006 09:43:12 +0000 (-0700) Subject: [PATCH] Remove cond_resched in gather_stats() X-Git-Tag: v2.6.16.17~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=602e0343a69b4300de4b889d644f95983dfdc9cd;p=thirdparty%2Fkernel%2Fstable.git [PATCH] 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Chris Wright --- diff --git a/mm/mempolicy.c b/mm/mempolicy.c index b21869a39f0b0..8d7ddf0df36b8 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -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