sched/numa: Check current->mm before allocating NUMA faults
authorMel Gorman <mgorman@suse.de>
Mon, 7 Oct 2013 10:29:04 +0000 (11:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 Oct 2013 10:40:31 +0000 (12:40 +0200)
commit9ff1d9ff3c2c8ab3feaeb2e8056a07ca293f7bde
tree678236662d8e0eb734dc7aeb011e50f81b7e9a06
parentac8e895bd260cb8bb19ade6a3abd44e7abe9a01d
sched/numa: Check current->mm before allocating NUMA faults

task_numa_placement checks current->mm but after buffers for faults
have already been uselessly allocated. Move the check earlier.

[peterz@infradead.org: Identified the problem]

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1381141781-10992-27-git-send-email-mgorman@suse.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c