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
  • fs
  • proc
  • array.c
Find file BlameHistoryPermalink
  • Oleg Nesterov's avatar
    [PATCH] proc: drop tasklist lock in task_state() · b0fa9db6
    Oleg Nesterov authored Oct 02, 2006
    
    
    task_state() needs tasklist_lock to protect ->parent/->real_parent.  However
    task->parent points to nowhere only when the actions below happen in order
    
    	1) release_task(task)
    	2) release_task(task->parent)
    	3) a grace period passed
    
    But 3) implies that the memory ops from 1) should be finished, so pid_alive()
    can't be true in such a case.
    
    Otherwise, we don't care if ->parent/->real_parent changes under us.
    
    Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
    Cc: "Eric W. Biederman" <ebiederm@xmission.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    b0fa9db6
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7