RDS: IB: Remove deprecated create_workqueue
Subsystems (4)
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
@@ -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
Hi,
Quoted 7 lines · Bhaktipriya Shridhar
alloc_workqueuereplaces deprecatedcreate_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_RECLAIMset 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.
Signed-off-by Bhaktipriya Shridhar <[email protected]>---
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
David Miller
maintainerFrom: Bhaktipriya Shridhar <[email protected]>
Date: Wed, 8 Jun 2016 01:03:45 +0530
Quoted 10 lines
alloc_workqueuereplaces deprecatedcreate_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_RECLAIMset to guarantee forward progress under memory pressure.
Since there are only a fixed number of work items, explicit concurrency limit is unnecessary here.Signed-off-by Bhaktipriya Shridhar <[email protected]>
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