Commit 602e0343 authored by Christoph Lameter's avatar Christoph Lameter Committed by Chris Wright

[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: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
parent dc0f3695
...@@ -1796,7 +1796,6 @@ static void gather_stats(struct page *page, void *private, int pte_dirty) ...@@ -1796,7 +1796,6 @@ static void gather_stats(struct page *page, void *private, int pte_dirty)
md->mapcount_max = count; md->mapcount_max = count;
md->node[page_to_nid(page)]++; md->node[page_to_nid(page)]++;
cond_resched();
} }
#ifdef CONFIG_HUGETLB_PAGE #ifdef CONFIG_HUGETLB_PAGE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment