iwcm: Don't allocate iwcm workqueue with WQ_MEM_RECLAIM
authorSagi Grimberg <[email protected]>
Tue, 15 Aug 2017 19:20:38 +0000 (22:20 +0300)
committerDoug Ledford <[email protected]>
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 <[email protected]>
Reviewed-by: Steve Wise <[email protected]>
Signed-off-by: Sagi Grimberg <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/core/iwcm.c

index 31661b5c1743649b47ba6b398c16b327e53a64ed..ff6d7bc44c1f2ea8a36cbc2122abe22d20658c87 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;