IB/mthca: allow address handle creation in interrupt context
PATCH 178/198 IB/mthca: allow address handle creation in interrupt context
From: Roland Dreier <[email protected]>
Make address handle verbs usable from interrupt context.
Signed-off-by Roland Dreier <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
25-akpm/drivers/infiniband/hw/mthca/mthca_av.c | 6 +++--- 25-akpm/drivers/infiniband/hw/mthca/mthca_provider.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/infiniband/hw/mthca/mthca_av.c renamed from drivers/infiniband/hw/mthca/mthca_av.c~ib-mthca-allow-address-handle-creation-in-interrupt-context +3 -3
@@ -63,7 +63,7 @@ int mthca_create_ah(struct mthca_dev *de ah->type =MTHCA_AH_PCI_POOL ;if (dev->hca_type ==ARBEL_NATIVE ) { - ah->av =kmalloc (sizeof *ah->av,GFP_KERNEL ); + ah->av =kmalloc (sizeof *ah->av,GFP_ATOMIC );if (!ah->av)return -ENOMEM ;
@@ -77,7 +77,7 @@ int mthca_create_ah(struct mthca_dev *deif (index ==-1 ) goto on_hca_fail; - av =kmalloc (sizeof *av,GFP_KERNEL ); + av =kmalloc (sizeof *av,GFP_ATOMIC );if (!av) goto on_hca_fail;
@@ -89,7 +89,7 @@ int mthca_create_ah(struct mthca_dev *de on_hca_fail:if (ah->type ==MTHCA_AH_PCI_POOL ) { ah->av =pci_pool_alloc (dev->av_table.pool, -SLAB_KERNEL , &ah->avdma); +SLAB_ATOMIC , &ah->avdma);if (!ah->av)return -ENOMEM ;
drivers/infiniband/hw/mthca/mthca_provider.c renamed from drivers/infiniband/hw/mthca/mthca_provider.c~ib-mthca-allow-address-handle-creation-in-interrupt-context +1 -1
@@ -315,7 +315,7 @@ static struct ib_ah *mthca_ah_create(strint err;struct mthca_ah *ah; - ah =kmalloc (sizeof *ah,GFP_KERNEL ); + ah =kmalloc (sizeof *ah,GFP_ATOMIC );if (!ah)return ERR_PTR (-ENOMEM );
_