IB/qib: Remove deprecated create_singlethread_workqueue
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Mon, 15 Aug 2016 18:08:47 +0000 (23:38 +0530)
committerDoug Ledford <dledford@redhat.com>
Fri, 7 Oct 2016 20:54:26 +0000 (16:54 -0400)
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.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qib/qib_init.c

index f253111e682ea7494782bfa2a12c97ead940affb..1730aa839a471f1610d181927fd4210070d88096 100644 (file)
@@ -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;
                }