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
  • task_work.c
Find file BlameHistoryPermalink
  • Jens Axboe's avatar
    task_work: allow TWA_SIGNAL without a rescheduling IPI · e788be95
    Jens Axboe authored Apr 28, 2022
    
    
    Some use cases don't always need an IPI when sending a TWA_SIGNAL
    notification. Add TWA_SIGNAL_NO_IPI, which is just like TWA_SIGNAL, except
    it doesn't send an IPI to the target task. It merely sets
    TIF_NOTIFY_SIGNAL and wakes up the task.
    
    This can be useful in avoiding a forceful transition to the kernel if the
    task is running in userspace. Depending on the task_work in question, it
    may be quite fine waiting for the next reschedule or kernel enter anyway,
    or the use case may even have other mechanisms for hinting to the task
    that a transition may be useful. This can drive more cooperative
    scheduling of task_work.
    
    Reviewed-by: default avatarPavel Begunkov <asml.silence@gmail.com>
    Link: https://lore.kernel.org/r/821f42b6-7d91-8074-8212-d34998097de4@kernel.dk
    
    
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    e788be95
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7