tree 2819979a27cc18dbf7086fa6e98e06deca0de19e
parent 2a4443a699347cb5ac442491421ce7cd7a12e3e2
author Roland Dreier <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:26 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:26 -0700

[PATCH] IB/mthca: allow address handle creation in interrupt context

Make address handle verbs usable from interrupt context.

Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 infiniband/hw/mthca/mthca_av.c       |    6 +++---
 infiniband/hw/mthca/mthca_provider.c |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

Index: drivers/infiniband/hw/mthca/mthca_av.c
===================================================================
--- 
ef082564fb6a3f9969278f611da96d4713d425bc/drivers/infiniband/hw/mthca/mthca_av.c 
 (mode:100644 sha1:426d32778e9c99040d2f7d143e5b2aa97a818e09)
+++ 
2819979a27cc18dbf7086fa6e98e06deca0de19e/drivers/infiniband/hw/mthca/mthca_av.c 
 (mode:100644 sha1:e4ee5d024dfbfe982ff93a597be207590afb2d65)
@@ -63,7 +63,7 @@
        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 @@
                if (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 @@
 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;
 
Index: drivers/infiniband/hw/mthca/mthca_provider.c
===================================================================
--- 
ef082564fb6a3f9969278f611da96d4713d425bc/drivers/infiniband/hw/mthca/mthca_provider.c
  (mode:100644 sha1:55a338da9970c3b597be5dda67b15eb5a4d70d24)
+++ 
2819979a27cc18dbf7086fa6e98e06deca0de19e/drivers/infiniband/hw/mthca/mthca_provider.c
  (mode:100644 sha1:daa54db00aa9aaa5dff5ad0acbd62cb922ae36be)
@@ -315,7 +315,7 @@
        int err;
        struct mthca_ah *ah;
 
-       ah = kmalloc(sizeof *ah, GFP_KERNEL);
+       ah = kmalloc(sizeof *ah, GFP_ATOMIC);
        if (!ah)
                return ERR_PTR(-ENOMEM);
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to