public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] call_usermodehelper_setup() should use GFP_KERNEL
@ 2008-05-08  6:41 KOSAKI Motohiro
  2008-05-08  7:23 ` Li Zefan
  0 siblings, 1 reply; 12+ messages in thread
From: KOSAKI Motohiro @ 2008-05-08  6:41 UTC (permalink / raw)
  To: Paul Menage, Li Zefan, Jeremy Fitzhardinge, Andi Kleen, LKML,
	Rusty Russell
  Cc: kosaki.motohiro

Now, call_usermodehelper_setup() use GFP_ATOMIC.
but it is slighly odd.
because call_usermodehelper() is always called process context.

GFP_KERNEL is robust and better.


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
CC: "Paul Menage" <menage@google.com>
CC: Li Zefan <lizf@cn.fujitsu.com>
CC: Jeremy Fitzhardinge <jeremy@xensource.com>
CC: Andi Kleen <ak@suse.de>
CC: Rusty Russell <rusty@rustcorp.com.au> 

---
 kernel/kmod.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/kernel/kmod.c
===================================================================
--- a/kernel/kmod.c	2008-04-29 17:37:41.000000000 +0900
+++ b/kernel/kmod.c	2008-05-06 20:20:02.000000000 +0900
@@ -360,7 +360,7 @@ struct subprocess_info *call_usermodehel
 						  char **argv, char **envp)
 {
 	struct subprocess_info *sub_info;
-	sub_info = kzalloc(sizeof(struct subprocess_info),  GFP_ATOMIC);
+	sub_info = kzalloc(sizeof(struct subprocess_info),  GFP_KERNEL);
 	if (!sub_info)
 		goto out;
 



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-05-09  0:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-08  6:41 [PATCH] call_usermodehelper_setup() should use GFP_KERNEL KOSAKI Motohiro
2008-05-08  7:23 ` Li Zefan
2008-05-08  7:31   ` KOSAKI Motohiro
2008-05-08  8:29     ` Andrew Morton
2008-05-08  9:40       ` KOSAKI Motohiro
2008-05-08 10:16       ` Jeremy Fitzhardinge
2008-05-08 10:38         ` KOSAKI Motohiro
2008-05-08 12:58           ` Jeremy Fitzhardinge
2008-05-08 23:46             ` KOSAKI Motohiro
2008-05-08 23:53               ` Jeremy Fitzhardinge
2008-05-09  0:04                 ` KOSAKI Motohiro
2008-05-09  0:08                   ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox