diff options
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-08-15 14:08:47 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-10-07 16:54:26 -0400 |
commit | b59114bbca195f381a3b10b8172ee9b0511ce7de (patch) | |
tree | 32d5e826f8e264e0b0ff4a64fb7d62fc1763b93e | |
parent | b41ff7cdb50a67974cdb62b1a8b500851bad101c (diff) |
IB/qib: 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 "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>
-rw-r--r-- | drivers/infiniband/hw/qib/qib_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c index f253111e682e..1730aa839a47 100644 --- a/drivers/infiniband/hw/qib/qib_init.c +++ b/drivers/infiniband/hw/qib/qib_init.c | |||
@@ -614,8 +614,8 @@ static int qib_create_workqueues(struct qib_devdata *dd) | |||
614 | 614 | ||
615 | snprintf(wq_name, sizeof(wq_name), "qib%d_%d", | 615 | snprintf(wq_name, sizeof(wq_name), "qib%d_%d", |
616 | dd->unit, pidx); | 616 | dd->unit, pidx); |
617 | ppd->qib_wq = | 617 | ppd->qib_wq = alloc_ordered_workqueue(wq_name, |
618 | create_singlethread_workqueue(wq_name); | 618 | WQ_MEM_RECLAIM); |
619 | if (!ppd->qib_wq) | 619 | if (!ppd->qib_wq) |
620 | goto wq_error; | 620 | goto wq_error; |
621 | } | 621 | } |