[PATCH] call_usermodehelper_setup() should use GFP_KERNEL

From: KOSAKI Motohiro
Date: Thu May 08 2008 - 02:41:41 EST


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@xxxxxxxxxxxxxx>
CC: "Paul Menage" <menage@xxxxxxxxxx>
CC: Li Zefan <lizf@xxxxxxxxxxxxxx>
CC: Jeremy Fitzhardinge <jeremy@xxxxxxxxxxxxx>
CC: Andi Kleen <ak@xxxxxxx>
CC: Rusty Russell <rusty@xxxxxxxxxxxxxxx>

---
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;



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/