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
  • kernel
  • workqueue.c
Find file BlameHistoryPermalink
  • Lai Jiangshan's avatar
    workqueue: Use cpu_possible_mask instead of cpu_active_mask to break affinity · 547a77d0
    Lai Jiangshan authored Jan 11, 2021
    The scheduler won't break affinity for us any more, and we should
    "emulate" the same behavior when the scheduler breaks affinity for
    us.  The behavior is "changing the cpumask to cpu_possible_mask".
    
    And there might be some other CPUs online later while the worker is
    still running with the pending work items.  The worker should be allowed
    to use the later online CPUs as before and process the work items ASAP.
    If we use cpu_active_mask here, we can't achieve this goal but
    using cpu_possible_mask can.
    
    Fixes: 06249738
    
     ("workqueue: Manually break affinity on hotplug")
    Signed-off-by: default avatarLai Jiangshan <laijs@linux.alibaba.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: default avatarValentin Schneider <valentin.schneider@arm.com>
    Acked-by: default avatarTejun Heo <tj@kernel.org>
    Tested-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    Tested-by: default avatarValentin Schneider <valentin.schneider@arm.com>
    Link: https://lkml.kernel.org/r/20210111152638.2417-4-jiangshanlai@gmail.com
    547a77d0
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7