From: Bhaktipriya Shridhar Date: Tue, 7 Jun 2016 19:33:45 +0000 (+0530) Subject: RDS: IB: Remove deprecated create_workqueue X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=231edca97f947f50e18fa2f6d9c8285c3314232b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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. Signed-off-by: Bhaktipriya Shridhar Acked-by: Santosh Shilimkar Signed-off-by: David S. Miller --- diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c index f7164ac1ffc1..a0f21b65a83c 100644 --- a/net/rds/ib_rdma.c +++ b/net/rds/ib_rdma.c @@ -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;