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
  • locking
  • rtmutex.c
Find file BlameHistoryPermalink
  • Thomas Gleixner's avatar
    locking/rtmutex: Prepare RT rt_mutex_wake_q for RT locks · 456cfbc6
    Thomas Gleixner authored Aug 15, 2021
    
    
    Add an rtlock_task pointer to rt_mutex_wake_q, which allows to handle the RT
    specific wakeup for spin/rwlock waiters. The pointer is just consuming 4/8
    bytes on the stack so it is provided unconditionaly to avoid #ifdeffery all
    over the place.
    
    This cannot use a regular wake_q, because a task can have concurrent wakeups which
    would make it miss either lock or the regular wakeups, depending on what gets
    queued first, unless task struct gains a separate wake_q_node for this, which
    would be overkill, because there can only be a single task which gets woken
    up in the spin/rw_lock unlock path.
    
    No functional change for non-RT enabled kernels.
    
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    Link: https://lore.kernel.org/r/20210815211303.253614678@linutronix.de
    456cfbc6
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7