Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma
[cascardo/linux.git] / drivers / infiniband / hw / mlx4 / mcg.c
index 097bfcc..a21d37f 100644 (file)
@@ -1045,7 +1045,7 @@ int mlx4_ib_mcg_port_init(struct mlx4_ib_demux_ctx *ctx)
 
        atomic_set(&ctx->tid, 0);
        sprintf(name, "mlx4_ib_mcg%d", ctx->port);
 
        atomic_set(&ctx->tid, 0);
        sprintf(name, "mlx4_ib_mcg%d", ctx->port);
-       ctx->mcg_wq = create_singlethread_workqueue(name);
+       ctx->mcg_wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
        if (!ctx->mcg_wq)
                return -ENOMEM;
 
        if (!ctx->mcg_wq)
                return -ENOMEM;
 
@@ -1246,7 +1246,7 @@ void clean_vf_mcast(struct mlx4_ib_demux_ctx *ctx, int slave)
 
 int mlx4_ib_mcg_init(void)
 {
 
 int mlx4_ib_mcg_init(void)
 {
-       clean_wq = create_singlethread_workqueue("mlx4_ib_mcg");
+       clean_wq = alloc_ordered_workqueue("mlx4_ib_mcg", WQ_MEM_RECLAIM);
        if (!clean_wq)
                return -ENOMEM;
 
        if (!clean_wq)
                return -ENOMEM;