]> git.baikalelectronics.ru Git - kernel.git/commit
sched/numa: Prevent parallel updates to group stats during placement
authorMel Gorman <mgorman@suse.de>
Mon, 7 Oct 2013 10:29:29 +0000 (11:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 Oct 2013 12:48:02 +0000 (14:48 +0200)
commitf2f40a1e037126bfc2f613921e1e81e50f5b8807
tree6f752254b51954b129fa3a35f44968342060afdb
parent91a327aef395323554d97f337028278c15114008
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>
kernel/sched/fair.c