From: Christoph Lameter Date: Thu, 20 Apr 2006 09:43:12 +0000 (-0700) Subject: [PATCH] Remove cond_resched in gather_stats() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6d472be37896b1c41b50f3da124f8b7718ba7797;p=deliverable%2Flinux.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 --- diff --git a/mm/mempolicy.c b/mm/mempolicy.c index dec8249e972d..8778f58880c4 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1761,7 +1761,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