aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched/fair.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-09-21 15:47:43 -0400
committerIngo Molnar <mingo@kernel.org>2014-09-24 03:35:05 -0400
commitbe34f0f3e6aed6e828a8059247d169d38da128d7 (patch)
tree9de40d22cd49bc8be1190b22247ad367d0fe1a17 /kernel/sched/fair.c
parent9c58c79a8a76c510cd3a5012c536d4fe3c81ec3b (diff)
sched/numa: Kill the wrong/dead TASK_DEAD check in task_numa_fault()
current->state == TASK_DEAD means that the task is doing its last schedule(), page fault is obviously impossible at this stage. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Mel Gorman <mgorman@suse.de> Acked-by: Rik van Riel <riel@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/20140921194743.GA30114@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/fair.c')
-rw-r--r--kernel/sched/fair.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 2a1e6ac6bb32..9ee3d4f6de47 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -1817,10 +1817,6 @@ void task_numa_fault(int last_cpupid, int mem_node, int pages, int flags)
1817 if (!p->mm) 1817 if (!p->mm)
1818 return; 1818 return;
1819 1819
1820 /* Do not worry about placement if exiting */
1821 if (p->state == TASK_DEAD)
1822 return;
1823
1824 /* Allocate buffer to track faults on a per-node basis */ 1820 /* Allocate buffer to track faults on a per-node basis */
1825 if (unlikely(!p->numa_faults_memory)) { 1821 if (unlikely(!p->numa_faults_memory)) {
1826 int size = sizeof(*p->numa_faults_memory) * 1822 int size = sizeof(*p->numa_faults_memory) *