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
  • Mr NeilBrown's avatar
    LU-10467 lustre: use wait_event_idle() where appropriate. · fa9c4d0f
    Mr NeilBrown authored Aug 26, 2019
    
    
    When l_wait_event() is passed an 'lwi' which is initialised
    to all zeroes, it behaves exactly like wait_event_idle():
     - no timeout
     - not interrupted by any signal
     - doesn't add to load average.
    
    So change all these instances to wait_event_idle(), or in two cases,
    to wait_event_idle_exclusive().
    
    There are three ways that lwi gets set to all zeros:
    	struct l_wait_info lwi = { 0 };
    	lwi = LWI_INTR(NULL, NULL);
    	memset(&lwi, 0, sizeof(lwi));
    
    Change-Id: Ia6723cbe248ce067331a002e5e9d54796739c08a
    Signed-off-by: default avatarMr NeilBrown <neilb@suse.de>
    Reviewed-on: https://review.whamcloud.com/35971
    
    
    Tested-by: default avatarjenkins <devops@whamcloud.com>
    Tested-by: default avatarMaloo <maloo@whamcloud.com>
    Reviewed-by: default avatarJames Simmons <jsimmons@infradead.org>
    Reviewed-by: default avatarPetros Koutoupis <pkoutoupis@cray.com>
    Reviewed-by: default avatarYang Sheng <ys@whamcloud.com>
    Reviewed-by: default avatarShaun Tancheff <stancheff@cray.com>
    Reviewed-by: default avatarOleg Drokin <green@whamcloud.com>
    fa9c4d0f

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