mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
[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>
This commit is contained in:
parent
4409ebe9af
commit
6d472be378
1 changed files with 0 additions and 1 deletions
|
@ -1761,7 +1761,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
|
||||||
|
|
Loading…
Add table
Reference in a new issue