diff options
author | Sebastian Andrzej Siewior <[email protected]> | 2022-02-17 11:24:04 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2022-02-22 22:25:02 +0100 |
commit | 1a03d3f13ffe5dd24142d6db629e72c11b704d99 (patch) | |
tree | 84657d0e0eb3fb7653a15caf35822407dddb0274 /include/linux/fpga/fpga-bridge.h | |
parent | f1c1a9ee00e4c53c9ccc03ec1aff4792948a25eb (diff) |
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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Andy Lutomirski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions