Re: pci_alloc_consistent from interrupt == BAD

From: Dan Malek (dan@embeddededge.com)
Date: Fri Jan 18 2002 - 16:46:37 EST


Russell King wrote:

> ..... 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.

Hmmm...I thought they already do this. I always assumed the gfp_flag passed
into alloc_pages would find its way all of the way through the page table
allocation as well. You just have to be ready to handle the case where
it returns with an -ENOMEM :-).

        -- Dan

-
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