Re: scheduling in kmalloc()

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Jul 06 2001 - 10:03:52 EST


> if we use any thing other than GFP_ATOMIC, does it result in scheduling
> out the process if there is no memory available?
> with GFP_KERNRL, I think we try freeing pages to service the current
> request.
> or is there any possibility of kmalloc() failing even with GFP_KERNEL?

kmalloc can always fail, looping on a kmalloc at high level can almost always
cause deadlocks so you need to be prepared to fail

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



This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:18 EST