Skip to content

Commit

Permalink
[PATCH] Remove cond_resched in gather_stats()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Apr 20, 2006
1 parent 4409ebe commit 6d472be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d472be

Please sign in to comment.