Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d472be3 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds
Browse files

[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>
parent 4409ebe9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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