dazuko-devel@nongnu.org
[Top] [All Lists]

[Dazuko-devel] Why kmalloc with GFP_ATOMIC?

Subject: [Dazuko-devel] Why kmalloc with GFP_ATOMIC?
From: "Tikka, Sami"
Date: Fri, 6 Jun 2008 15:52:21 +0300
Hi!

Is there good reason why dazuko on Linux 2.6 allocates memory using
GFP_ATOMIC instead of GFP_KERNEL?

As I understand, GFP_ATOMIC should only be used by interrupt handlers and
other code that absolutely cannot sleep. Isn't all of dazuko functionality
happening in process context so there is no reason why it could not sleep
while kernel does some swapping?

-- 
Sami Tikka
F-Secure Corporation
BE SURE. 



_______________________________________________
Dazuko-devel mailing list
Dazuko-devel@xxxxxxxxxx
http://lists.nongnu.org/mailman/listinfo/dazuko-devel

<Prev in Thread] Current Thread [Next in Thread>