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
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • kthread.c
Find file BlameHistoryPermalink
  • Peter Zijlstra's avatar
    kthread: Allow kthread_park() on a parked kthread · b1f5b378
    Peter Zijlstra authored May 04, 2018
    The following commit:
    
      85f1abe0
    
     ("kthread, sched/wait: Fix kthread_parkme() completion issue")
    
    added a WARN() in the case where we call kthread_park() on an already
    parked thread, because the old code wasn't doing the right thing there
    and it wasn't at all clear that would happen.
    
    It turns out, this does in fact happen, so we have to deal with it.
    
    Instead of potentially returning early, also wait for the completion.
    This does however mean we have to use complete_all() and re-initialize
    the completion on re-use.
    
    Reported-by: default avatarLKP <lkp@01.org>
    Tested-by: default avatarMeelis Roos <mroos@linux.ee>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: kernel test robot <lkp@intel.com>
    Cc: wfg@linux.intel.com
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Fixes: 85f1abe0 ("kthread, sched/wait: Fix kthread_parkme() completion issue")
    Link: http://lkml.kernel.org/r/20180504091142.GI12235@hirez.programming.kicks-ass.net
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    b1f5b378
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7