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
  • Jinshan Xiong's avatar
    LU-11518 ldlm: control lru_size for extent lock · 6052cc88
    Jinshan Xiong authored Jul 31, 2020
    
    
    We register ELC for extent locks to be canceled at enqueue time,
    but it can't make positive effect to locks that have dirty pages
    under it. To keep the semantics of lru_size, the client should
    check how many unused locks are cached after adding a lock into
    lru list. If it has already exceeded the hard limit
    (ns_max_unused), the client will initiate async lock cancellation
    process in batch mode (ns->ns_cancel_batch).
    
    To do it, re-use the new batching LRU cancel functionality.
    
    Wherever unlimited LRU cancel is called (not ELC), try to cancel in
    batched mode.
    
    And a new field named new sysfs attribute named *lru_cancel_batch*
    is introduced into ldlm namespace to control the batch count.
    
    Signed-off-by: default avatarJinshan Xiong <jinshan.xiong@intel.com>
    Signed-off-by: default avatarShuichi Ihara <sihara@ddn.com>
    Signed-off-by: default avatarGu Zheng <gzheng@ddn.com>
    Signed-off-by: default avatarVitaly Fertman <c17818@cray.com>
    Change-Id: Ib18b829372da8599ba872b5ac5ab7421661f942d
    Reviewed-on: https://es-gerrit.dev.cray.com/157068
    
    
    Reviewed-by: default avatarAndriy Skulysh <c17819@cray.com>
    Reviewed-by: default avatarAlexey Lyashkov <c17817@cray.com>
    Tested-by: default avatarAlexander Lezhoev <c17454@cray.com>
    Reviewed-on: https://review.whamcloud.com/39562
    
    
    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 avatarOleg Drokin <green@whamcloud.com>
    6052cc88

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