[PATCH 18/22] [PATCH] Remove cond_resched in gather_stats()

From: Chris Wright
Date: Wed May 17 2006 - 18:11:50 EST

-stable review patch. If anyone has any objections, please let us know.

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@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
Signed-off-by: Linus Torvalds <torvalds@xxxxxxxx>
Signed-off-by: Chris Wright <chrisw@xxxxxxxxxxxx>

mm/mempolicy.c | 1 -
1 file changed, 1 deletion(-)

--- linux-
+++ linux-
@@ -1796,7 +1796,6 @@ static void gather_stats(struct page *pa
md->mapcount_max = count;

- cond_resched();


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/