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
  • drivers
  • android
  • binder_alloc.c
Find file BlameHistoryPermalink
  • Carlos Llamas's avatar
    binder: perform page installation outside of locks · 37ebbb4f
    Carlos Llamas authored Dec 01, 2023
    
    
    Split out the insertion of pages to be outside of the alloc->mutex in a
    separate binder_install_buffer_pages() routine. Since this is no longer
    serialized, we must look at the full range of pages used by the buffers.
    The installation is protected with mmap_sem in write mode since multiple
    tasks might race to install the same page.
    
    Besides avoiding unnecessary nested locking this helps in preparation of
    switching the alloc->mutex into a spinlock_t in subsequent patches.
    
    Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
    Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
    Link: https://lore.kernel.org/r/20231201172212.1813387-20-cmllamas@google.com
    
    
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    37ebbb4f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7