summaryrefslogtreecommitdiffstats
path: root/kernel/sched/stop_task.c
diff options
context:
space:
mode:
authorMel Gorman2013-10-07 12:29:29 +0200
committerIngo Molnar2013-10-09 14:48:02 +0200
commit7dbd13ed06513b047216a7ffc718bad9df0660f1 (patch)
tree6f752254b51954b129fa3a35f44968342060afdb /kernel/sched/stop_task.c
parentsched/numa: Call task_numa_free() from do_execve() (diff)
downloadkernel-qcow2-linux-7dbd13ed06513b047216a7ffc718bad9df0660f1.tar.gz
kernel-qcow2-linux-7dbd13ed06513b047216a7ffc718bad9df0660f1.tar.xz
kernel-qcow2-linux-7dbd13ed06513b047216a7ffc718bad9df0660f1.zip
sched/numa: Prevent parallel updates to group stats during placement
Having multiple tasks in a group go through task_numa_placement simultaneously can lead to a task picking a wrong node to run on, because the group stats may be in the middle of an update. This patch avoids parallel updates by holding the numa_group lock during placement decisions. 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-52-git-send-email-mgorman@suse.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/stop_task.c')
0 files changed, 0 insertions, 0 deletions