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
  • lib
  • percpu-refcount.c
Find file BlameHistoryPermalink
  • NeilBrown's avatar
    percpu-refcount: support synchronous switch to atomic mode. · 210f7cdc
    NeilBrown authored Mar 15, 2017
    
    
    percpu_ref_switch_to_atomic_sync() schedules the switch to atomic mode, then
    waits for it to complete.
    
    Also export percpu_ref_switch_to_* so they can be used from modules.
    
    This will be used in md/raid to count the number of pending write
    requests to an array.
    We occasionally need to check if the count is zero, but most often
    we don't care.
    We always want updates to the counter to be fast, as in some cases
    we count every 4K page.
    
    Signed-off-by: default avatarNeilBrown <neilb@suse.com>
    Acked-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarShaohua Li <shli@fb.com>
    210f7cdc
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7