Skip to contentSkip to conversation

Remove deprecated create_workqueue instances

PATCH In review Bhaktipriya Shridhar 6 participants 38 messages Aug 15, 2016 – Sep 16, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover Remove deprecated create_workqueue instances

This patch set removes the instances of deprecated create_singlethread_workqueue (scheduled for removal) in drivers/infiniband by making the appropriate conversions.

Bhaktipriya Shridhar (22):
IB/sa : Remove deprecated create_singlethread_workqueue IB/mad: Remove deprecated create_singlethread_workqueue IB/multicast: Remove deprecated create_singlethread_workqueue IB/ucma: Remove deprecated create_singlethread_workqueue IB/cma: Remove deprecated create_singlethread_workqueue IB/addr: Remove deprecated create_singlethread_workqueue IB/iwcm: Remove deprecated create_singlethread_workqueue
iw_cxgb3: Remove deprecated create_singlethread_workqueue IB/qib: Remove deprecated create_singlethread_workqueue
iw_cxgb4: Remove deprecated create_singlethread_workqueue IB/mthca: Remove deprecated create_singlethread_workqueue
i40iw_main: Remove deprecated create_singlethread_workqueue
i40iw_cm: Remove deprecated create_singlethread_workqueue IB/mlx5: Remove deprecated create_singlethread_workqueue IB/mlx5/odp: Remove deprecated create_singlethread_workqueue IB/mlx4: Remove deprecated create_singlethread_workqueue IB/mlx4/mad: Remove deprecated create_singlethread_workqueue IB/mlx4/mcg: Remove deprecated create_singlethread_workqueue IB/nes: Remove deprecated create_singlethread_workqueue IB/ipoib: Remove deprecated create_singlethread_workqueue IB/ipoib_verbs: Remove deprecated create_singlethread_workqueue IB/mlx4/alias_GUID: Remove deprecated create_singlethread_workqueue

 drivers/infiniband/core/addr.c             | 2 +-
 drivers/infiniband/core/cma.c              | 2 +-
 drivers/infiniband/core/iwcm.c             | 2 +-
 drivers/infiniband/core/mad.c              | 2 +-
 drivers/infiniband/core/multicast.c        | 2 +-
 drivers/infiniband/core/sa_query.c         | 2 +-
 drivers/infiniband/core/ucma.c             | 3 ++-
 drivers/infiniband/hw/cxgb3/iwch_cm.c      | 2 +-
 drivers/infiniband/hw/cxgb4/cm.c           | 2 +-
 drivers/infiniband/hw/i40iw/i40iw_cm.c     | 7 +++++--
 drivers/infiniband/hw/i40iw/i40iw_main.c   | 2 +-
 drivers/infiniband/hw/mlx4/alias_GUID.c    | 2 +-
 drivers/infiniband/hw/mlx4/mad.c           | 4 ++--
 drivers/infiniband/hw/mlx4/main.c          | 2 +-
 drivers/infiniband/hw/mlx4/mcg.c           | 4 ++--
 drivers/infiniband/hw/mlx5/mr.c            | 2 +-
 drivers/infiniband/hw/mlx5/odp.c           | 4 ++--
 drivers/infiniband/hw/mthca/mthca_catas.c  | 2 +-
 drivers/infiniband/hw/nes/nes_cm.c         | 4 ++--
 drivers/infiniband/hw/qib/qib_init.c       | 4 ++--
 drivers/infiniband/ulp/ipoib/ipoib_main.c  | 3 ++-
 drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 2 +-
 22 files changed, 33 insertions(+), 28 deletions(-)

--
2.1.4

#1 lore raw

PATCH 1/22 IB/sa : Remove deprecated create_singlethread_workqueue

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "ib_nl" queues work item &ib_nl_timed_work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/core/sa_query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/core/sa_query.c +1 -1
index e955386..6559199 100644
@@ -1974,7 +1974,7 @@ int ib_sa_init(void)
 		goto err2;
 	}
 
-	ib_nl_wq = create_singlethread_workqueue("ib_nl_sa_wq");
+	ib_nl_wq = alloc_ordered_workqueue("ib_nl_sa_wq", WQ_MEM_RECLAIM);
 	if (!ib_nl_wq) {
 		ret = -ENOMEM;
 		goto err3;

--
2.1.4

#2 lore raw

PATCH 2/22 IB/mad: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

The workqueue "ib_nl" queues work items &ib_nl_timed_work and &mad_agent_priv->local_work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/core/mad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/core/mad.c +1 -1
index 2d49228..d882868 100644
@@ -3177,7 +3177,7 @@ static int ib_mad_port_open(struct ib_device *device,
 		goto error7;
 
 	snprintf(name, sizeof name, "ib_mad%d", port_num);
-	port_priv->wq = create_singlethread_workqueue(name);
+	port_priv->wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	if (!port_priv->wq) {
 		ret = -ENOMEM;
 		goto error8;

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

PATCH 3/22 IB/multicast: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "mcast_wq" queues work item &group->work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/core/multicast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/core/multicast.c +1 -1
index a83ec28..002a85c 100644
@@ -894,7 +894,7 @@ int mcast_init(void)
 {
 	int ret;
 
-	mcast_wq = create_singlethread_workqueue("ib_mcast");
+	mcast_wq = alloc_ordered_workqueue("ib_mcast", WQ_MEM_RECLAIM);
 	if (!mcast_wq)
 		return -ENOMEM;
 

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

PATCH 4/22 IB/ucma: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "close_wq" queues work items &ctx->close_work (maps to ucma_close_id) and &con_req_eve->close_work (maps to ucma_close_event_id). It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/core/ucma.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/infiniband/core/ucma.c +2 -1
index c0f3826..9045387 100644
@@ -1628,7 +1628,8 @@ static int ucma_open(struct inode *inode, struct file *filp)
 	if (!file)
 		return -ENOMEM;
 
-	file->close_wq = create_singlethread_workqueue("ucma_close_id");
+	file->close_wq = alloc_ordered_workqueue("ucma_close_id",
+						 WQ_MEM_RECLAIM);
 	if (!file->close_wq) {
 		kfree(file);
 		return -ENOMEM;

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

PATCH 5/22 IB/cma: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "cma_wq" queues work item cma_work_handler. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/core/cma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/core/cma.c +1 -1
index ad1b1ad..a262fdc 100644
@@ -4277,7 +4277,7 @@ static int __init cma_init(void)
 {
 	int ret;
 
-	cma_wq = create_singlethread_workqueue("rdma_cm");
+	cma_wq = alloc_ordered_workqueue("rdma_cm", WQ_MEM_RECLAIM);
 	if (!cma_wq)
 		return -ENOMEM;
 

--
2.1.4

Reviewed-by on v1 5/22
#6 lore raw

RE: [PATCH 05/22] IB/cma: Remove deprecated create_singlethread_workqueue

Quoted 11 lines

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "cma_wq" queues work item cma_work_handler. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

Looks fine.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

PATCH 6/22 IB/addr: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

The workqueue "addr_wq" queues a single work item &work and hence doesn't require ordering. Also, it is being used on a memory reclaim path. Hence, it has been converted to use alloc_workqueue with WQ_MEM_RECLAIM set.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/core/addr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/core/addr.c +1 -1
index 1374541..b136d3a 100644
@@ -800,7 +800,7 @@ static struct notifier_block nb = {
 
 int addr_init(void)
 {
-	addr_wq = create_singlethread_workqueue("ib_addr");
+	addr_wq = alloc_workqueue("ib_addr", WQ_MEM_RECLAIM, 0);
 	if (!addr_wq)
 		return -ENOMEM;
 

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw

PATCH 7/22 IB/iwcm: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "iwcm_wq" queues work item &work(maps to cm_work_handler). It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/core/iwcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/core/iwcm.c +1 -1
index f057204..d6b5224 100644
@@ -1180,7 +1180,7 @@ static int __init iw_cm_init(void)
 	if (ret)
 		pr_err("iw_cm: couldn't register netlink callbacks\n");
 
-	iwcm_wq = create_singlethread_workqueue("iw_cm_wq");
+	iwcm_wq = alloc_ordered_workqueue("iw_cm_wq", WQ_MEM_RECLAIM);
 	if (!iwcm_wq)
 		return -ENOMEM;
 

--
2.1.4

Reviewed-by on v1 7/22
#9 lore raw

RE: [PATCH 07/22] IB/iwcm: Remove deprecated create_singlethread_workqueue

Quoted 11 lines

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "iwcm_wq" queues work item &work(maps to cm_work_handler). It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

Looks fine.

#10 lore raw

PATCH 8/22 iw_cxgb3: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "workq" queues work item &skb_work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/cxgb3/iwch_cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/cxgb3/iwch_cm.c +1 -1
index 3e8431b..1ce4e6b 100644
@@ -2258,7 +2258,7 @@ int __init iwch_cm_init(void)
 {
 	skb_queue_head_init(&rxq);
 
-	workq = create_singlethread_workqueue("iw_cxgb3");
+	workq = alloc_ordered_workqueue("iw_cxgb3", WQ_MEM_RECLAIM);
 	if (!workq)
 		return -ENOMEM;
 

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 8/22
#11 lore raw

RE: [PATCH 08/22] iw_cxgb3: Remove deprecated create_singlethread_workqueue

Quoted 5 lines

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

Quoted 7 lines

The workqueue "workq" queues work item &skb_work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

#12 lore raw

PATCH 9/22 IB/qib: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "qib" queues work item &priv->s_work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/qib/qib_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/qib/qib_init.c +2 -2
index f253111..1730aa8 100644
@@ -614,8 +614,8 @@ static int qib_create_workqueues(struct qib_devdata *dd)
 
 			snprintf(wq_name, sizeof(wq_name), "qib%d_%d",
 				dd->unit, pidx);
-			ppd->qib_wq =
-				create_singlethread_workqueue(wq_name);
+			ppd->qib_wq = alloc_ordered_workqueue(wq_name,
+							      WQ_MEM_RECLAIM);
 			if (!ppd->qib_wq)
 				goto wq_error;
 		}

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Tested-by Acked-by on v1 9/22
#13 lore raw

RE: [PATCH 09/22] IB/qib: Remove deprecated create_singlethread_workqueue

Quoted 3 lines

Subject: [PATCH 09/22] IB/qib: Remove deprecated
create_singlethread_workqueue

Looks and tests good!

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#14 lore raw

PATCH 10/22 iw_cxgb4: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "workq" queues work item &skb_work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/cxgb4/cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/cxgb4/cm.c +1 -1
index a3a6721..6438b4c 100644
@@ -4282,7 +4282,7 @@ int __init c4iw_cm_init(void)
 	spin_lock_init(&timeout_lock);
 	skb_queue_head_init(&rxq);
 
-	workq = create_singlethread_workqueue("iw_cxgb4");
+	workq = alloc_ordered_workqueue("iw_cxgb4", WQ_MEM_RECLAIM);
 	if (!workq)
 		return -ENOMEM;
 

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 10/22
#15 lore raw

RE: [PATCH 10/22] iw_cxgb4: Remove deprecated create_singlethread_workqueue

Quoted 11 lines

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "workq" queues work item &skb_work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

#16 lore raw

PATCH 11/22 IB/mthca: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "catas_wq" in triggering a device remove and causing a device reset when a catastrophic error occurs. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/mthca/mthca_catas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mthca/mthca_catas.c +1 -1
index 712d2a3..f6474c2 100644
@@ -187,7 +187,7 @@ int __init mthca_catas_init(void)
 {
 	INIT_WORK(&catas_work, catas_reset);
 
-	catas_wq = create_singlethread_workqueue("mthca_catas");
+	catas_wq = alloc_ordered_workqueue("mthca_catas", WQ_MEM_RECLAIM);
 	if (!catas_wq)
 		return -ENOMEM;
 

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#17 lore raw

PATCH 12/22 i40iw_main: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "virtchnl_wq" queues work items i40iw_cqp_generic_worker and i40iw_cqp_manage_hmc_fcn_worker. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/i40iw/i40iw_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/i40iw/i40iw_main.c +1 -1
index 6e90813..798335f 100644
@@ -1613,7 +1613,7 @@ static int i40iw_open(struct i40e_info *ldev, struct i40e_client *client)
 		status = i40iw_hmc_init_pble(&iwdev->sc_dev, iwdev->pble_rsrc);
 		if (status)
 			break;
-		iwdev->virtchnl_wq = create_singlethread_workqueue("iwvch");
+		iwdev->virtchnl_wq = alloc_ordered_workqueue("iwvch", WQ_MEM_RECLAIM);
 		i40iw_register_notifiers();
 		iwdev->init_state = INET_NOTIFIER;
 		status = i40iw_add_mac_ip(iwdev);

--
2.1.4

#18 lore raw

PATCH 13/22 i40iw_cm: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "event_wq" is involved in event handling and queues i40iw_cm_event_handler.

The workqueue "disconn_wq" is involved in closing connection and queues i40iw_disconnect_worker.

Both workqueues have been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/i40iw/i40iw_cm.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/infiniband/hw/i40iw/i40iw_cm.c +5 -2
index d2fa725..76082b3 100644
@@ -3166,8 +3166,11 @@ void i40iw_setup_cm_core(struct i40iw_device *iwdev)
 	spin_lock_init(&cm_core->ht_lock);
 	spin_lock_init(&cm_core->listen_list_lock);
 
-	cm_core->event_wq = create_singlethread_workqueue("iwewq");
-	cm_core->disconn_wq = create_singlethread_workqueue("iwdwq");
+	cm_core->event_wq = alloc_ordered_workqueue("iwewq",
+						    WQ_MEM_RECLAIM);
+
+	cm_core->disconn_wq = alloc_ordered_workqueue("iwdwq",
+						      WQ_MEM_RECLAIM);
 }
 
 /**

--
2.1.4

#19 lore raw

PATCH 14/22 IB/mlx5: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "cache->wq" queues work items &ent->work (maps to cache_work_func) and &ent->dwork(maps to delayed_cache_work_func). It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/mlx5/mr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx5/mr.c +1 -1
index 8cf2ce5..fb0194d 100644
@@ -614,7 +614,7 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev)
 	int err;
 	int i;
 
-	cache->wq = create_singlethread_workqueue("mkey_cache");
+	cache->wq = alloc_ordered_workqueue("mkey_cache", WQ_MEM_RECLAIM);
 	if (!cache->wq) {
 		mlx5_ib_warn(dev, "failed to create work queue\n");
 		return -ENOMEM;

--
2.1.4

Acked-by on v1 14/22
#20 lore raw

Re: [PATCH 14/22] IB/mlx5: Remove deprecated create_singlethread_workqueue

Quoted 8 lines · Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "cache->wq" queues work items &ent->work (maps to cache_work_func) and &ent->dwork(maps to delayed_cache_work_func). It has been identity converted.

Quoted 7 lines

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/mlx5/mr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks,

Quoted 21 lines
drivers/infiniband/hw/mlx5/mr.c +1 -2
index 8cf2ce5..fb0194d 100644
@@ -614,7 +614,7 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev)
 	int err;
 	int i;
 
-	cache->wq = create_singlethread_workqueue("mkey_cache");
+	cache->wq = alloc_ordered_workqueue("mkey_cache", WQ_MEM_RECLAIM);
 	if (!cache->wq) {
 		mlx5_ib_warn(dev, "failed to create work queue\n");
 		return -ENOMEM;
--

2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 14/22
#21 lore raw

Re: [PATCH 14/22] IB/mlx5: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar
Quoted 4 lines · Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

Quoted 8 lines

The workqueue "cache->wq" queues work items &ent->work (maps to cache_work_func) and &ent->dwork(maps to delayed_cache_work_func). It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

Thanks,

Quoted 24 lines
---
 drivers/infiniband/hw/mlx5/mr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx5/mr.c +1 -2
index 8cf2ce5..fb0194d 100644
@@ -614,7 +614,7 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev)
 	int err;
 	int i;
 
-	cache->wq = create_singlethread_workqueue("mkey_cache");
+	cache->wq = alloc_ordered_workqueue("mkey_cache", WQ_MEM_RECLAIM);
 	if (!cache->wq) {
 		mlx5_ib_warn(dev, "failed to create work queue\n");
 		return -ENOMEM;
--

2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#22 lore raw

PATCH 15/22 IB/mlx5/odp: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "mlx5_ib_page_fault_wq" queues work item &qp_pfault->work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/mlx5/odp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/mlx5/odp.c +2 -2
index 34e79e7..cacb631 100644
@@ -782,8 +782,8 @@ void mlx5_ib_odp_remove_one(struct mlx5_ib_dev *ibdev)
 
 int __init mlx5_ib_odp_init(void)
 {
-	mlx5_ib_page_fault_wq =
-		create_singlethread_workqueue("mlx5_ib_page_faults");
+	mlx5_ib_page_fault_wq = alloc_ordered_workqueue("mlx5_ib_page_faults",
+							WQ_MEM_RECLAIM);
 	if (!mlx5_ib_page_fault_wq)
 		return -ENOMEM;
 

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 15/22
#23 lore raw

Re: [PATCH 15/22] IB/mlx5/odp: Remove deprecated create_singlethread_workqueue

Quoted 11 lines · Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "mlx5_ib_page_fault_wq" queues work item &qp_pfault->work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

Thanks,

Quoted 26 lines
---
 drivers/infiniband/hw/mlx5/odp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/mlx5/odp.c +2 -3
index 34e79e7..cacb631 100644
@@ -782,8 +782,8 @@ void mlx5_ib_odp_remove_one(struct mlx5_ib_dev *ibdev)
 
 int __init mlx5_ib_odp_init(void)
 {
-	mlx5_ib_page_fault_wq =
-		create_singlethread_workqueue("mlx5_ib_page_faults");
+	mlx5_ib_page_fault_wq = alloc_ordered_workqueue("mlx5_ib_page_faults",
+							WQ_MEM_RECLAIM);
 	if (!mlx5_ib_page_fault_wq)
 		return -ENOMEM;
 
--

2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#24 lore raw

PATCH 16/22 IB/mlx4: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "wq" queues work items &dm[i]->work, &ew->work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/mlx4/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx4/main.c +1 -1
index 42a4607..f3876b79 100644
@@ -3023,7 +3023,7 @@ static int __init mlx4_ib_init(void)
 {
 	int err;
 
-	wq = create_singlethread_workqueue("mlx4_ib");
+	wq = alloc_ordered_workqueue("mlx4_ib", WQ_MEM_RECLAIM);
 	if (!wq)
 		return -ENOMEM;
 

--
2.1.4

Reviewed-by on v1 16/22
#25 lore raw

Re: [PATCH 16/22] IB/mlx4: Remove deprecated create_singlethread_workqueue

Quoted 7 lines · Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "wq" queues work items &dm[i]->work, &ew->work. It has been identity converted.

Quoted 7 lines

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/mlx4/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks,

#26 lore raw

PATCH 17/22 IB/mlx4/mad: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "wq" queues work item &ctx->work and the workqueue "ud_wq" queues work item &dm[i]->work.

Both the workqueues have been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/mlx4/mad.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/mlx4/mad.c +2 -2
index 9c2e53d..35b1260 100644
@@ -2070,7 +2070,7 @@ static int mlx4_ib_alloc_demux_ctx(struct mlx4_ib_dev *dev,
 	}
 
 	snprintf(name, sizeof name, "mlx4_ibt%d", port);
-	ctx->wq = create_singlethread_workqueue(name);
+	ctx->wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	if (!ctx->wq) {
 		pr_err("Failed to create tunnelling WQ for port %d\n", port);
 		ret = -ENOMEM;
@@ -2078,7 +2078,7 @@ static int mlx4_ib_alloc_demux_ctx(struct mlx4_ib_dev *dev,
 	}
 
 	snprintf(name, sizeof name, "mlx4_ibud%d", port);
-	ctx->ud_wq = create_singlethread_workqueue(name);
+	ctx->ud_wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	if (!ctx->ud_wq) {
 		pr_err("Failed to create up/down WQ for port %d\n", port);
 		ret = -ENOMEM;

--
2.1.4

Reviewed-by on v1 17/22
#27 lore raw

Re: [PATCH 17/22] IB/mlx4/mad: Remove deprecated create_singlethread_workqueue

Quoted 7 lines · Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "wq" queues work item &ctx->work and the workqueue "ud_wq" queues work item &dm[i]->work.

Quoted 6 lines

Both the workqueues have been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

Thanks,

Quoted 33 lines
---
 drivers/infiniband/hw/mlx4/mad.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/mlx4/mad.c +2 -3
index 9c2e53d..35b1260 100644
@@ -2070,7 +2070,7 @@ static int mlx4_ib_alloc_demux_ctx(struct mlx4_ib_dev *dev,
 	}
 
 	snprintf(name, sizeof name, "mlx4_ibt%d", port);
-	ctx->wq = create_singlethread_workqueue(name);
+	ctx->wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	if (!ctx->wq) {
 		pr_err("Failed to create tunnelling WQ for port %d\n", port);
 		ret = -ENOMEM;
@@ -2078,7 +2078,7 @@ static int mlx4_ib_alloc_demux_ctx(struct mlx4_ib_dev *dev,
 	}
 
 	snprintf(name, sizeof name, "mlx4_ibud%d", port);
-	ctx->ud_wq = create_singlethread_workqueue(name);
+	ctx->ud_wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	if (!ctx->ud_wq) {
 		pr_err("Failed to create up/down WQ for port %d\n", port);
 		ret = -ENOMEM;
--

2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#28 lore raw

PATCH 18/22 IB/mlx4/mcg: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "mcg_wq" queues work items &group->work and &group->timeout_work.

The workqueue "clean_wq" queues work item mcg_clean_task.

Both have been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/mlx4/mcg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/mlx4/mcg.c +2 -2
index 8f7ad07..7d30be0 100644
@@ -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);
-	ctx->mcg_wq = create_singlethread_workqueue(name);
+	ctx->mcg_wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	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)
 {
-	clean_wq = create_singlethread_workqueue("mlx4_ib_mcg");
+	clean_wq = alloc_ordered_workqueue("mlx4_ib_mcg", WQ_MEM_RECLAIM);
 	if (!clean_wq)
 		return -ENOMEM;
 

--
2.1.4

Reviewed-by on v1 18/22
#29 lore raw

Re: [PATCH 18/22] IB/mlx4/mcg: Remove deprecated create_singlethread_workqueue

Quoted 9 lines · Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "mcg_wq" queues work items &group->work and &group->timeout_work.

The workqueue "clean_wq" queues work item mcg_clean_task.

Quoted 7 lines

Both have been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---

Thanks,

Quoted 32 lines
 drivers/infiniband/hw/mlx4/mcg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/mlx4/mcg.c +2 -3
index 8f7ad07..7d30be0 100644
@@ -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);
-	ctx->mcg_wq = create_singlethread_workqueue(name);
+	ctx->mcg_wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	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)
 {
-	clean_wq = create_singlethread_workqueue("mlx4_ib_mcg");
+	clean_wq = alloc_ordered_workqueue("mlx4_ib_mcg", WQ_MEM_RECLAIM);
 	if (!clean_wq)
 		return -ENOMEM;
 
--

2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#30 lore raw

PATCH 19/22 IB/nes: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() replaces deprecated
create_singlethread_workqueue().

The workqueue "event_wq" queues work item &event->event_work and the workqueue "disconn_wq" queues work item work (maps to g_cm_core->disconn_wq).

WQ_MEM_RECLAIM has not been set since the workqueues are not being used on a memory reclaim path.

---
 drivers/infiniband/hw/nes/nes_cm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/nes/nes_cm.c +2 -2
index 7f0aa23..57db9b3 100644
@@ -2692,12 +2692,12 @@ static struct nes_cm_core *nes_cm_alloc_core(void)
 	nes_debug(NES_DBG_CM, "Init CM Core completed -- cm_core=%p\n", cm_core);
 
 	nes_debug(NES_DBG_CM, "Enable QUEUE EVENTS\n");
-	cm_core->event_wq = create_singlethread_workqueue("nesewq");
+	cm_core->event_wq = alloc_ordered_workqueue("nesewq", 0);
 	if (!cm_core->event_wq)
 		goto out_free_cmcore;
 	cm_core->post_event = nes_cm_post_event;
 	nes_debug(NES_DBG_CM, "Enable QUEUE DISCONNECTS\n");
-	cm_core->disconn_wq = create_singlethread_workqueue("nesdwq");
+	cm_core->disconn_wq = alloc_ordered_workqueue("nesdwq", 0);
 	if (!cm_core->disconn_wq)
 		goto out_free_wq;
 

--
2.1.4

#31 lore raw

PATCH 20/22 IB/ipoib: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() replaces deprecated
create_singlethread_workqueue().

The workqueue "ipoib_workqueue" that is used for all flush operstions for the device.

WQ_MEM_RECLAIM has not been set since it is not being used on a memory reclaim path.

---
 drivers/infiniband/ulp/ipoib/ipoib_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/infiniband/ulp/ipoib/ipoib_main.c +2 -1
index 5f58c41..a8043a3 100644
@@ -2197,7 +2197,8 @@ static int __init ipoib_init_module(void)
 	 * its private workqueue, and we only queue up flush events
 	 * on our global flush workqueue.  This avoids the deadlocks.
 	 */
-	ipoib_workqueue = create_singlethread_workqueue("ipoib_flush");
+	ipoib_workqueue = alloc_ordered_workqueue("ipoib_flush",
+						  WQ_MEM_RECLAIM);
 	if (!ipoib_workqueue) {
 		ret = -ENOMEM;
 		goto err_fs;

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#32 lore raw

PATCH 21/22 IB/ipoib_verbs: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "wq" queues mulitple work items viz &priv->restart_task, &priv->cm.rx_reap_task, &priv->cm.skb_task, &priv->neigh_reap_task, &priv->ah_reap_task, &priv->mcast_task and &priv->carrier_on_task. The work items require strict execution ordering.
Hence, an ordered dedicated workqueue has been used.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/ulp/ipoib/ipoib_verbs.c +1 -1
index 1e7cbba..5737652 100644
@@ -156,7 +156,7 @@ int ipoib_transport_dev_init(struct net_device *dev, struct ib_device *ca)
 	 * the various IPoIB tasks assume they will never race against
 	 * themselves, so always use a single thread workqueue
 	 */
-	priv->wq = create_singlethread_workqueue("ipoib_wq");
+	priv->wq = alloc_ordered_workqueue("ipoib_wq", WQ_MEM_RECLAIM);
 	if (!priv->wq) {
 		printk(KERN_WARNING "ipoib: failed to allocate device WQ\n");
 		goto out_free_pd;

--
2.1.4

#33 lore raw

PATCH 22/22 IB/mlx4/alias_GUID: Remove deprecated create_singlethread_workqueue

In reply to Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "wq" queues work item that maps to alias_guid_work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

---
 drivers/infiniband/hw/mlx4/alias_GUID.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx4/alias_GUID.c +1 -1
index c74ef26..5e99390 100644
@@ -881,7 +881,7 @@ int mlx4_ib_init_alias_guid_service(struct mlx4_ib_dev *dev)
 
 		snprintf(alias_wq_name, sizeof alias_wq_name, "alias_guid%d", i);
 		dev->sriov.alias_guid.ports_guid[i].wq =
-			create_singlethread_workqueue(alias_wq_name);
+			alloc_ordered_workqueue(alias_wq_name, WQ_MEM_RECLAIM);
 		if (!dev->sriov.alias_guid.ports_guid[i].wq) {
 			ret = -ENOMEM;
 			goto err_thread;

--
2.1.4

Reviewed-by on v1 22/22
#34 lore raw

Re: [PATCH 22/22] IB/mlx4/alias_GUID: Remove deprecated create_singlethread_workqueue

Quoted 11 lines · Bhaktipriya Shridhar

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion.

The workqueue "wq" queues work item that maps to alias_guid_work. It has been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

Thanks,

Quoted 24 lines
---
 drivers/infiniband/hw/mlx4/alias_GUID.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx4/alias_GUID.c +1 -2
index c74ef26..5e99390 100644
@@ -881,7 +881,7 @@ int mlx4_ib_init_alias_guid_service(struct mlx4_ib_dev *dev)
 
 		snprintf(alias_wq_name, sizeof alias_wq_name, "alias_guid%d", i);
 		dev->sriov.alias_guid.ports_guid[i].wq =
-			create_singlethread_workqueue(alias_wq_name);
+			alloc_ordered_workqueue(alias_wq_name, WQ_MEM_RECLAIM);
 		if (!dev->sriov.alias_guid.ports_guid[i].wq) {
 			ret = -ENOMEM;
 			goto err_thread;
--

2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#35 lore raw
In reply to Bhaktipriya Shridhar

Hello,

Quoted 3 lines · Bhaktipriya Shridhar

This patch set removes the instances of deprecated create_singlethread_workqueue (scheduled for removal) in drivers/infiniband by making the appropriate conversions.

Patches generally look good to me. The only thing is that there seem to be several patches where ordering doesn't seem necessary, at least judging from the patch descriptions. It'd be great to clarify those.

Thanks.

Signature · 5 lines
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#36 lore raw
In reply to Bhaktipriya Shridhar
Quoted 19 lines · Bhaktipriya Shridhar

This patch set removes the instances of deprecated create_singlethread_workqueue (scheduled for removal) in drivers/infiniband by making the appropriate conversions.

Bhaktipriya Shridhar (22):
IB/sa : Remove deprecated create_singlethread_workqueue IB/mad: Remove deprecated create_singlethread_workqueue IB/multicast: Remove deprecated create_singlethread_workqueue IB/ucma: Remove deprecated create_singlethread_workqueue IB/cma: Remove deprecated create_singlethread_workqueue IB/addr: Remove deprecated create_singlethread_workqueue IB/iwcm: Remove deprecated create_singlethread_workqueue
iw_cxgb3: Remove deprecated create_singlethread_workqueue IB/qib: Remove deprecated create_singlethread_workqueue
iw_cxgb4: Remove deprecated create_singlethread_workqueue IB/mthca: Remove deprecated create_singlethread_workqueue
i40iw_main: Remove deprecated create_singlethread_workqueue
i40iw_cm: Remove deprecated create_singlethread_workqueue IB/mlx5: Remove deprecated create_singlethread_workqueue

Quoted 8 lines

IB/mlx5/odp: Remove deprecated create_singlethread_workqueue IB/mlx4: Remove deprecated create_singlethread_workqueue IB/mlx4/mad: Remove deprecated create_singlethread_workqueue IB/mlx4/mcg: Remove deprecated create_singlethread_workqueue IB/nes: Remove deprecated create_singlethread_workqueue IB/ipoib: Remove deprecated create_singlethread_workqueue IB/ipoib_verbs: Remove deprecated create_singlethread_workqueue IB/mlx4/alias_GUID: Remove deprecated create_singlethread_workqueue

Thank you for doing it in one patch set, it is much easier to review.

#37 lore raw
In reply to Bhaktipriya Shridhar
Quoted 52 lines · Bhaktipriya Shridhar

This patch set removes the instances of deprecated create_singlethread_workqueue (scheduled for removal) in drivers/infiniband by making the appropriate conversions.

Bhaktipriya Shridhar (22):
IB/sa : Remove deprecated create_singlethread_workqueue IB/mad: Remove deprecated create_singlethread_workqueue IB/multicast: Remove deprecated create_singlethread_workqueue IB/ucma: Remove deprecated create_singlethread_workqueue IB/cma: Remove deprecated create_singlethread_workqueue IB/addr: Remove deprecated create_singlethread_workqueue IB/iwcm: Remove deprecated create_singlethread_workqueue
iw_cxgb3: Remove deprecated create_singlethread_workqueue IB/qib: Remove deprecated create_singlethread_workqueue
iw_cxgb4: Remove deprecated create_singlethread_workqueue IB/mthca: Remove deprecated create_singlethread_workqueue
i40iw_main: Remove deprecated create_singlethread_workqueue
i40iw_cm: Remove deprecated create_singlethread_workqueue IB/mlx5: Remove deprecated create_singlethread_workqueue IB/mlx5/odp: Remove deprecated create_singlethread_workqueue IB/mlx4: Remove deprecated create_singlethread_workqueue IB/mlx4/mad: Remove deprecated create_singlethread_workqueue IB/mlx4/mcg: Remove deprecated create_singlethread_workqueue IB/nes: Remove deprecated create_singlethread_workqueue IB/ipoib: Remove deprecated create_singlethread_workqueue IB/ipoib_verbs: Remove deprecated create_singlethread_workqueue IB/mlx4/alias_GUID: Remove deprecated create_singlethread_workqueue

 drivers/infiniband/core/addr.c             | 2 +-
 drivers/infiniband/core/cma.c              | 2 +-
 drivers/infiniband/core/iwcm.c             | 2 +-
 drivers/infiniband/core/mad.c              | 2 +-
 drivers/infiniband/core/multicast.c        | 2 +-
 drivers/infiniband/core/sa_query.c         | 2 +-
 drivers/infiniband/core/ucma.c             | 3 ++-
 drivers/infiniband/hw/cxgb3/iwch_cm.c      | 2 +-
 drivers/infiniband/hw/cxgb4/cm.c           | 2 +-
 drivers/infiniband/hw/i40iw/i40iw_cm.c     | 7 +++++--
 drivers/infiniband/hw/i40iw/i40iw_main.c   | 2 +-
 drivers/infiniband/hw/mlx4/alias_GUID.c    | 2 +-
 drivers/infiniband/hw/mlx4/mad.c           | 4 ++--
 drivers/infiniband/hw/mlx4/main.c          | 2 +-
 drivers/infiniband/hw/mlx4/mcg.c           | 4 ++--
 drivers/infiniband/hw/mlx5/mr.c            | 2 +-
 drivers/infiniband/hw/mlx5/odp.c           | 4 ++--
 drivers/infiniband/hw/mthca/mthca_catas.c  | 2 +-
 drivers/infiniband/hw/nes/nes_cm.c         | 4 ++--
 drivers/infiniband/hw/qib/qib_init.c       | 4 ++--
 drivers/infiniband/ulp/ipoib/ipoib_main.c  | 3 ++-
 drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 2 +-
 22 files changed, 33 insertions(+), 28 deletions(-)
Quoted 3 lines

--
2.1.4

The commit message of patch 20/22 was not matching what you actually did. I fixed that up (the commit message, the patch was right), then series applied.

Signature · 2 lines
Doug Ledford <[email protected]>
    GPG Key ID: 0E572FDD