Messages in this thread | | | Date | Fri, 11 Feb 2022 15:43:50 -0800 | Subject | Re: [PATCH 6/8] kernel/fork: Move task stack account to do_exit(). | From | Andy Lutomirski <> |
| |
On 1/25/22 07:26, Sebastian Andrzej Siewior wrote: > There is no need to perform the stack accounting of the outgoing task in > its final schedule() invocation which happens with disabled preemption. > 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().
Seems reasonable.
| |