[PATCH] pci_alloc_consistent in an interrupt context

Eugene Surovegin ebs at innocent.com
Fri Jun 14 12:29:38 EST 2002


At 04:34 PM 6/13/2002, Paul Mackerras wrote:
>Maybe the best answer is to change get_vm_area to use
>
>         (in_interrupt()? GFP_ATOMIC: GFP_KERNEL)
>
>instead of GFP_KERNEL in the kmalloc call, and eliminate the need to
>add the extra parameter.  I'll run that past davem and see what he
>thinks.

Well, your solution is much better :).

Do I understand correctly, we have to modify _all_ vmlist_lock locking to
use _irqsave counterparts?
Not just in get_vm_area, right?

Eugene.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list