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
  • include
  • linux
  • srcutree.h
Find file BlameHistoryPermalink
  • Paul E. McKenney's avatar
    srcu: Use static init for statically allocated in-module srcu_struct · f4d01a25
    Paul E. McKenney authored Mar 17, 2023
    
    
    Further shrinking the srcu_struct structure is eased by requiring
    that in-module srcu_struct structures rely more heavily on static
    initialization.  In particular, this preserves the property that
    a module-load-time srcu_struct initialization can fail only due
    to memory-allocation failure of the per-CPU srcu_data structures.
    It might also slightly improve robustness by keeping the number of memory
    allocations that must succeed down percpu_alloc() call.
    
    This is in preparation for splitting an srcu_usage structure out
    of the srcu_struct structure.
    
    [ paulmck: Fold in qiang1.zhang@intel.com feedback. ]
    
    Cc: Christoph Hellwig <hch@lst.de>
    Tested-by: default avatarSachin Sant <sachinp@linux.ibm.com>
    Tested-by: default avatar"Zhang, Qiang1" <qiang1.zhang@intel.com>
    Tested-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    f4d01a25
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7