Re: Q: semaphore and kmalloc(GFP_KERNEL)?

From: Tetsuo Handa
Date: Sun May 10 2009 - 23:26:22 EST


KOSAKI Motohiro wrote:
> > Then, should I move kmalloc(GFP_KERNEL) to outside the lock whenever possible?
>
> Yes. almost driver does it.
> this is generic issue of nested locking.

I see. I'll try to rewrite.
Thank you.
--
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/