iwcm: Don't allocate iwcm workqueue with WQ_MEM_RECLAIM
authorSagi Grimberg <sagi@grimberg.me>
Tue, 15 Aug 2017 19:20:38 +0000 (22:20 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 18 Aug 2017 14:46:20 +0000 (10:46 -0400)
Its very likely that iwcm work execution will yield memory
allocations (for example cm connection request).

Reported-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/iwcm.c

index 31661b5..ff6d7bc 100644 (file)
@@ -1181,7 +1181,7 @@ static int __init iw_cm_init(void)
        if (ret)
                pr_err("iw_cm: couldn't register netlink callbacks\n");
 
-       iwcm_wq = alloc_ordered_workqueue("iw_cm_wq", WQ_MEM_RECLAIM);
+       iwcm_wq = alloc_ordered_workqueue("iw_cm_wq", 0);
        if (!iwcm_wq)
                return -ENOMEM;