Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Christoph Lameter and committed by
Linus Torvalds
6d472be3 4409ebe9

-1
-1
mm/mempolicy.c
··· 1761 1761 md->mapcount_max = count; 1762 1762 1763 1763 md->node[page_to_nid(page)]++; 1764 - cond_resched(); 1765 1764 } 1766 1765 1767 1766 #ifdef CONFIG_HUGETLB_PAGE