From: Ben Hutchings Date: Fri, 10 Sep 2010 06:41:26 +0000 (+0000) Subject: sfc: Allocate DMA and event rings using GFP_KERNEL X-Git-Tag: v2.6.37-rc1~147^2~480 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58758aa505edc5b8f8393cee45b54c7485d76de5;p=pandora-kernel.git sfc: Allocate DMA and event rings using GFP_KERNEL Currently we allocate DMA descriptor rings and event rings using pci_alloc_consistent() which selects non-blocking behaviour from the page allocator (GFP_ATOMIC). This is unnecessary, and since we currently allocate a single contiguous block for each ring (up to 32 pages!) these allocations are likely to fail if there is any significant memory pressure. Use dma_alloc_coherent() and GFP_KERNEL instead. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed