Re: pci_alloc_consistent from interrupt == BAD

From: David S. Miller (davem@redhat.com)
Date: Fri Jan 18 2002 - 16:33:06 EST


   From: Russell King <rmk@arm.linux.org.uk>
   Date: Fri, 18 Jan 2002 21:29:49 +0000
   
   However, if it becomes easy to implement without impacting the code too
   much, then it will get fixed in due coarse. The problem currently is
   that there is no way for the page table allocation functions to know
   that they should be using atomic and emergency pool memory allocations.

Encapsultate the page table allocation core interfaces into
__whatever_alloc() routines that take a GFP arg perhaps?
It is like a 15 minute hack.

BTW, the USB host controller drivers do this (allocate potentially
from interrupts) so anyone using USB on ARM...
-
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 : Wed Jan 23 2002 - 21:00:29 EST