Searched hist:"1 a03d3f1" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/include/linux/sched/ |
H A D | task_stack.h | 1a03d3f1 Thu Feb 17 04:24:04 CST 2022 Sebastian Andrzej Siewior <bigeasy@linutronix.de> fork: Move task stack accounting to do_exit()
There is no need to perform the stack accounting of the outgoing task in its final schedule() invocation which happens with preemption disabled. The task is leaving, the resources will be freed and the accounting can happen in do_exit() before the actual schedule invocation which frees the stack memory.
Move the accounting of the stack memory from release_task_stack() to exit_task_stack_account() which then can be invoked from do_exit().
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Andy Lutomirski <luto@kernel.org> Link: https://lore.kernel.org/r/20220217102406.3697941-7-bigeasy@linutronix.de
|
/openbmc/linux/kernel/ |
H A D | exit.c | 1a03d3f1 Thu Feb 17 04:24:04 CST 2022 Sebastian Andrzej Siewior <bigeasy@linutronix.de> fork: Move task stack accounting to do_exit()
There is no need to perform the stack accounting of the outgoing task in its final schedule() invocation which happens with preemption disabled. The task is leaving, the resources will be freed and the accounting can happen in do_exit() before the actual schedule invocation which frees the stack memory.
Move the accounting of the stack memory from release_task_stack() to exit_task_stack_account() which then can be invoked from do_exit().
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Andy Lutomirski <luto@kernel.org> Link: https://lore.kernel.org/r/20220217102406.3697941-7-bigeasy@linutronix.de
|
H A D | fork.c | 1a03d3f1 Thu Feb 17 04:24:04 CST 2022 Sebastian Andrzej Siewior <bigeasy@linutronix.de> fork: Move task stack accounting to do_exit()
There is no need to perform the stack accounting of the outgoing task in its final schedule() invocation which happens with preemption disabled. The task is leaving, the resources will be freed and the accounting can happen in do_exit() before the actual schedule invocation which frees the stack memory.
Move the accounting of the stack memory from release_task_stack() to exit_task_stack_account() which then can be invoked from do_exit().
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Andy Lutomirski <luto@kernel.org> Link: https://lore.kernel.org/r/20220217102406.3697941-7-bigeasy@linutronix.de
|