[PATCH] IB/mthca: Use dma_alloc_coherent instead of pci_alloc_consistent
authorRoland Dreier <roland@topspin.com>
Mon, 27 Jun 2005 21:36:40 +0000 (14:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 27 Jun 2005 22:11:44 +0000 (15:11 -0700)
commit64dc81fca7f6d5c51e50ffa850640ad8358acd1f
tree919ca8d2ea8567a1de4bba989a123b77340b989a
parentbb2af78bcdbb8801791de33f1775c98b9178daab
[PATCH] IB/mthca: Use dma_alloc_coherent instead of pci_alloc_consistent

Switch all allocations of coherent memory from pci_alloc_consistent() to
dma_alloc_coherent(), so that we can pass GFP_KERNEL.  This should help when
the system is low on memory.

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/hw/mthca/mthca_cq.c
drivers/infiniband/hw/mthca/mthca_eq.c
drivers/infiniband/hw/mthca/mthca_qp.c