Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L lustre-release
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • debian-packagesdebian-packages
  • lustre-release
  • Repository
Switch branch/tag
  • lustre-release
  • lustre
  • ldlm
  • ldlm_lock.c
Find file BlameHistoryPermalink
  • NeilBrown's avatar
    LU-12542 handle: move refcount into the lustre_handle. · ae22814b
    NeilBrown authored Sep 11, 2019
    
    
    Most objects with a lustre_handle have a refcount. The exception
    is mdt_mfd which uses locking (med_open_lock) to manage its
    lifetime. The lustre_handles code currently needs a call-out to
    increment its refcount. To simplify things, move the refcount
    into the lustre_hanle (which will be largely ignored by mdt_mfd)
    and discard the call-out.
    
    To avoid warnings when refcount debugging is enabled the refcount
    of mdt_mfd is initialized to 1, and decremeneted after any
    class_handle2object() call which would have incremented it.
    
    In order to preserve the same debug messages, we store an object type
    name in the portals_handle_ops, and use that in a CDEBUG() when
    incrementing the ref count.
    
    Change-Id: I1920330b2aeffd4b865cb9b249997aa28b209c33
    Signed-off-by: default avatarNeilBrown <neilb@suse.com>
    Reviewed-on: https://review.whamcloud.com/35794
    
    
    Reviewed-by: default avatarNeil Brown <neilb@suse.de>
    Tested-by: default avatarjenkins <devops@whamcloud.com>
    Tested-by: default avatarMaloo <maloo@whamcloud.com>
    Reviewed-by: default avatarAndreas Dilger <adilger@whamcloud.com>
    Reviewed-by: default avatarShaun Tancheff <stancheff@cray.com>
    Reviewed-by: default avatarOleg Drokin <green@whamcloud.com>
    ae22814b

https://git.gsi.de is provided by CIT→Linux&Web | GSI Helmholtzzentrum fuer Schwerionenforschung GmbH | Imprint (in German) | Privacy policy