]> git.baikalelectronics.ru Git - kernel.git/commit
sched/numa: Call task_numa_free() from do_execve()
authorRik van Riel <riel@redhat.com>
Mon, 7 Oct 2013 10:29:28 +0000 (11:29 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 Oct 2013 12:48:00 +0000 (14:48 +0200)
commit91a327aef395323554d97f337028278c15114008
tree429e0db98c4512f714a668ae9ef9d3bb6e85ce0f
parent7184197a53ba1e81ac510288071f5430470e994a
sched/numa: Call task_numa_free() from do_execve()

It is possible for a task in a numa group to call exec, and
have the new (unrelated) executable inherit the numa group
association from its former self.

This has the potential to break numa grouping, and is trivial
to fix.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Mel Gorman <mgorman@suse.de>
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-51-git-send-email-mgorman@suse.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
fs/exec.c
include/linux/sched.h
kernel/sched/fair.c
kernel/sched/sched.h