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
  • livepatch.h
Find file BlameHistoryPermalink
  • Josh Poimboeuf's avatar
    livepatch,sched: Add livepatch task switching to cond_resched() · e3ff7c60
    Josh Poimboeuf authored Feb 24, 2023
    There have been reports [1][2] of live patches failing to complete
    within a reasonable amount of time due to CPU-bound kthreads.
    
    Fix it by patching tasks in cond_resched().
    
    There are four different flavors of cond_resched(), depending on the
    kernel configuration.  Hook into all of them.
    
    A more elegant solution might be to use a preempt notifier.  However,
    non-ORC unwinders can't unwind a preempted task reliably.
    
    [1] https://lore.kernel.org/lkml/20220507174628.2086373-1-song@kernel.org/
    [2] https://lkml.kernel.org/lkml/20230120-vhost-klp-switching-v1-0-7c2b65519c43@kernel.org
    
    
    
    Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
    Tested-by: default avatarSeth Forshee (DigitalOcean) <sforshee@kernel.org>
    Link: https://lore.kernel.org/r/4ae981466b7814ec221014fc2554b2f86f3fb70b.1677257135.git.jpoimboe@kernel.org
    e3ff7c60
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7