Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • include
  • linux
  • sched
  • task_stack.h
Find file BlameHistoryPermalink
  • Sebastian Andrzej Siewior's avatar
    fork: Move task stack accounting to do_exit() · 1a03d3f1
    Sebastian Andrzej Siewior authored Feb 17, 2022
    
    
    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: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Acked-by: default avatarAndy Lutomirski <luto@kernel.org>
    Link: https://lore.kernel.org/r/20220217102406.3697941-7-bigeasy@linutronix.de
    1a03d3f1
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7