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
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • sys.c
Find file BlameHistoryPermalink
  • KOSAKI Motohiro's avatar
    call_usermodehelper(): increase reliability · ac331d15
    KOSAKI Motohiro authored Jul 25, 2008
    
    
    Presently call_usermodehelper_setup() uses GFP_ATOMIC.  but it can return
    NULL _very_ easily.
    
    GFP_ATOMIC is needed only when we can't sleep.  and, GFP_KERNEL is robust
    and better.
    
    thus, I add gfp_mask argument to call_usermodehelper_setup().
    
    So, its callers pass the gfp_t as below:
    
    call_usermodehelper() and call_usermodehelper_keys():
    	depend on 'wait' argument.
    call_usermodehelper_pipe():
    	always GFP_KERNEL because always run under process context.
    orderly_poweroff():
    	pass to GFP_ATOMIC because may run under interrupt context.
    
    Signed-off-by: default avatarKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Cc: "Paul Menage" <menage@google.com>
    Reviewed-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
    Acked-by: default avatarJeremy Fitzhardinge <jeremy@xensource.com>
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    Cc: Andi Kleen <andi@firstfloor.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    ac331d15
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7