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
  • llite
  • llite_lib.c
Find file BlameHistoryPermalink
  • Mr NeilBrown's avatar
    LU-12930 various: use schedule_timeout_*interruptible · 5c883ea2
    Mr NeilBrown authored Nov 04, 2019
    
    
    The construct:
    
      set_current_state(TASK_UNINTERRUPTIBLE);
      schedule_timeout(time);
    
    Is more clearly expressed as
    
      schedule_timeout_uninterruptible(time);
    
    And similarly with TASK_INTERRUPTIBLE /
    schedule_timeout_interruptible()
    
    Establishing this practice makes it harder to forget to call
    set_current_state() as has happened a couple of times - in
    lnet_peer_discovery and mdd_changelog_fini().
    
    Also, there is no need to set_current_state(TASK_RUNNABLE) after
    calling schedule*().  That state is guaranteed to have been set.
    
    In mdd_changelog_fini() there was an attempt to sleep for
    10 microseconds.  This will always round up to 1 jiffy, so
    just make it schedule_timeout_uninterruptible(1).
    
    Finally a few places where the number of seconds was multiplied
    by 1, have had the '1 *' removed.
    
    Test-Parameters: trivial
    Signed-off-by: default avatarMr NeilBrown <neilb@suse.de>
    Change-Id: I01b37039de0bf7e07480de372c1a4cfe78a8cdd8
    Reviewed-on: https://review.whamcloud.com/36656
    
    
    Tested-by: default avatarjenkins <devops@whamcloud.com>
    Tested-by: default avatarMaloo <maloo@whamcloud.com>
    Reviewed-by: default avatarShaun Tancheff <shaun.tancheff@hpe.com>
    Reviewed-by: default avatarJames Simmons <jsimmons@infradead.org>
    Reviewed-by: default avatarOleg Drokin <green@whamcloud.com>
    5c883ea2

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