]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.16.17/remove-cond_resched-in-gather_stats.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.16.17 / remove-cond_resched-in-gather_stats.patch
1 From nobody Mon Sep 17 00:00:00 2001
2 From: Christoph Lameter <clameter@sgi.com>
3 Date: Thu, 20 Apr 2006 02:43:12 -0700
4 Subject: Remove cond_resched in gather_stats()
5
6 gather_stats() is called with a spinlock held from check_pte_range. We
7 cannot reschedule with a lock held.
8
9 Signed-off-by: Christoph Lameter <clameter@sgi.com>
10 Signed-off-by: Andrew Morton <akpm@osdl.org>
11 Signed-off-by: Linus Torvalds <torvalds@osdl.org>
12 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
13
14 ---
15 mm/mempolicy.c | 1 -
16 1 file changed, 1 deletion(-)
17
18 --- linux-2.6.16.16.orig/mm/mempolicy.c
19 +++ linux-2.6.16.16/mm/mempolicy.c
20 @@ -1796,7 +1796,6 @@ static void gather_stats(struct page *pa
21 md->mapcount_max = count;
22
23 md->node[page_to_nid(page)]++;
24 - cond_resched();
25 }
26
27 #ifdef CONFIG_HUGETLB_PAGE