diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-04-20 02:43:12 -0700 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2006-05-20 15:00:32 -0700 |
commit | 602e0343a69b4300de4b889d644f95983dfdc9cd (patch) | |
tree | b0c918d82735e1df06f621dbdb6b257bf59d7160 /mm/mempolicy.c | |
parent | dc0f369552b491d1578e8a8c6f6512e17246241c (diff) |
[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 <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index b21869a39f0..8d7ddf0df36 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 |