[ewg] [PATCH] ofed-1.3-rc4 IB/ehca: Alloc firmware context in query_port() with GFP_ATOMIC
Hoang-Nam Nguyen
hnguyen at linux.vnet.ibm.com
Mon Feb 4 09:46:44 PST 2008
IB/ehca: Alloc firmware context in query_port with GFP_ATOMIC
This is required to prevent scheduling oops on rhel4.5.
Signed-off-by: Hoang-Nam Nguyen <hnguyen at de.ibm.com>
---
...11_Alloc_firmware_context_with_GFP_ATOMIC.patch | 27 ++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
create mode 100644 kernel_patches/fixes/ehca_0011_Alloc_firmware_context_with_GFP_ATOMIC.patch
diff --git a/kernel_patches/fixes/ehca_0011_Alloc_firmware_context_with_GFP_ATOMIC.patch b/kernel_patches/fixes/ehca_0011_Alloc_firmware_context_with_GFP_ATOMIC.patch
new file mode 100644
index 0000000..b1a6a06
--- /dev/null
+++ b/kernel_patches/fixes/ehca_0011_Alloc_firmware_context_with_GFP_ATOMIC.patch
@@ -0,0 +1,27 @@
+From e00dc99d72ffdeceb135dcdeafbec6d190979c52 Mon Sep 17 00:00:00 2001
+From: Hoang-Nam Nguyen <hnguyen at de.ibm.com>
+Date: Mon, 4 Feb 2008 18:12:26 +0100
+Subject: [PATCH] IB/ehca: Alloc firmware context in query_port with GFP_ATOMIC
+This is required to prevent scheduling oops on rhel4.5.
+
+Signed-off-by: Hoang-Nam Nguyen <hnguyen at de.ibm.com>
+---
+ drivers/infiniband/hw/ehca/ehca_hca.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/infiniband/hw/ehca/ehca_hca.c b/drivers/infiniband/hw/ehca/ehca_hca.c
+index 5bd7b59..f860eb3 100644
+--- a/drivers/infiniband/hw/ehca/ehca_hca.c
++++ b/drivers/infiniband/hw/ehca/ehca_hca.c
+@@ -137,7 +137,7 @@ int ehca_query_port(struct ib_device *ibdev,
+ ib_device);
+ struct hipz_query_port *rblock;
+
+- rblock = ehca_alloc_fw_ctrlblock(GFP_KERNEL);
++ rblock = ehca_alloc_fw_ctrlblock(GFP_ATOMIC);
+ if (!rblock) {
+ ehca_err(&shca->ib_device, "Can't allocate rblock memory.");
+ return -ENOMEM;
+--
+1.5.2
+
--
1.5.2
More information about the ewg
mailing list