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
  • block
  • loop.h
Find file BlameHistoryPermalink
  • Pavel Tatashin's avatar
    loop: scale loop device by introducing per device lock · 6cc8e743
    Pavel Tatashin authored Jan 26, 2021
    
    
    Currently, loop device has only one global lock: loop_ctl_mutex.
    
    This becomes hot in scenarios where many loop devices are used.
    
    Scale it by introducing per-device lock: lo_mutex that protects
    modifications of all fields in struct loop_device.
    
    Keep loop_ctl_mutex to protect global data: loop_index_idr, loop_lookup,
    loop_add.
    
    The new lock ordering requirement is that loop_ctl_mutex must be taken
    before lo_mutex.
    
    Signed-off-by: default avatarPavel Tatashin <pasha.tatashin@soleen.com>
    Reviewed-by: default avatarTyler Hicks <tyhicks@linux.microsoft.com>
    Reviewed-by: default avatarPetr Vorel <pvorel@suse.cz>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    6cc8e743
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7