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
  • tools
  • memory-model
  • linux-kernel.cat
Find file BlameHistoryPermalink
  • Boqun Feng's avatar
    tools/memory-model: Provide extra ordering for unlock+lock pair on the same CPU · ddfe1294
    Boqun Feng authored Oct 25, 2021
    A recent discussion[1] shows that we are in favor of strengthening the
    ordering of unlock + lock on the same CPU: a unlock and a po-after lock
    should provide the so-called RCtso ordering, that is a memory access S
    po-before the unlock should be ordered against a memory access R
    po-after the lock, unless S is a store and R is a load.
    
    The strengthening meets programmers' expection that "sequence of two
    locked regions to be ordered wrt each other" (from Linus), and can
    reduce the mental burden when using locks. Therefore add it in LKMM.
    
    [1]: https://lore.kernel.org/lkml/20210909185937.GA12379@rowland.harvard.edu/
    
    
    
    Co-developed-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
    Reviewed-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
    Acked-by: Palmer Dabbelt <palmerdabbelt@google.com> (RISC-V)
    Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    ddfe1294
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7