Skip to contentSkip to conversation

RDS: IB: Remove deprecated create_workqueue

PATCH In review Bhaktipriya Shridhar 3 participants 3 messages Jun 7, 2016 – Jun 11, 2016

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

PATCH 1/1 RDS: IB: Remove deprecated create_workqueue

alloc_workqueue replaces deprecated create_workqueue().

Since the driver is infiniband which can be used as block device and the workqueue seems involved in regular operation of the device, so a dedicated workqueue has been used with WQ_MEM_RECLAIM set to guarantee forward progress under memory pressure.
Since there are only a fixed number of work items, explicit concurrency limit is unnecessary here.

---
 net/rds/ib_rdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/rds/ib_rdma.c +1 -1
index f7164ac..a0f21b6 100644
@@ -618,7 +618,7 @@ struct rds_ib_mr_pool *rds_ib_create_mr_pool(struct rds_ib_device *rds_ibdev,
 
 int rds_ib_mr_init(void)
 {
-	rds_ib_mr_wq = create_workqueue("rds_mr_flushd");
+	rds_ib_mr_wq = alloc_workqueue("rds_mr_flushd", WQ_MEM_RECLAIM, 0);
 	if (!rds_ib_mr_wq)
 		return -ENOMEM;
 	return 0;

--
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 1/1
#1 lore raw

Hi,

Quoted 7 lines · Bhaktipriya Shridhar

alloc_workqueue replaces deprecated create_workqueue().

Since the driver is infiniband which can be used as block device and the workqueue seems involved in regular operation of the device, so a dedicated workqueue has been used with WQ_MEM_RECLAIM set to guarantee forward progress under memory pressure.

Quoted 5 lines

Since there are only a fixed number of work items, explicit concurrency limit is unnecessary here.

---

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

maintainer
#2 lore raw
In reply to Bhaktipriya Shridhar

From: Bhaktipriya Shridhar <[email protected]>
Date: Wed, 8 Jun 2016 01:03:45 +0530

Quoted 10 lines

alloc_workqueue replaces deprecated create_workqueue().

Since the driver is infiniband which can be used as block device and the workqueue seems involved in regular operation of the device, so a dedicated workqueue has been used with WQ_MEM_RECLAIM set to guarantee forward progress under memory pressure.
Since there are only a fixed number of work items, explicit concurrency limit is unnecessary here.

Applied, thanks.
--
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