aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2013-10-07 06:29:28 -0400
committerIngo Molnar <mingo@kernel.org>2013-10-09 08:48:00 -0400
commit82727018b0d33d188e9916bcf76f18387484cb04 (patch)
tree429e0db98c4512f714a668ae9ef9d3bb6e85ce0f /fs/exec.c
parent83e1d2cd9eabec5164afea295ff06b941ae8e4a9 (diff)
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>
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 8875dd10ae7a..2ea437e5acf4 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1547,6 +1547,7 @@ static int do_execve_common(const char *filename,
1547 current->fs->in_exec = 0; 1547 current->fs->in_exec = 0;
1548 current->in_execve = 0; 1548 current->in_execve = 0;
1549 acct_update_integrals(current); 1549 acct_update_integrals(current);
1550 task_numa_free(current);
1550 free_bprm(bprm); 1551 free_bprm(bprm);
1551 if (displaced) 1552 if (displaced)
1552 put_files_struct(displaced); 1553 put_files_struct(displaced);