Commit b59114bb authored by Bhaktipriya Shridhar's avatar Bhaktipriya Shridhar Committed by Doug Ledford

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: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Tested-by: default avatarMike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: default avatarMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent b41ff7cd
...@@ -614,8 +614,8 @@ static int qib_create_workqueues(struct qib_devdata *dd) ...@@ -614,8 +614,8 @@ static int qib_create_workqueues(struct qib_devdata *dd)
snprintf(wq_name, sizeof(wq_name), "qib%d_%d", snprintf(wq_name, sizeof(wq_name), "qib%d_%d",
dd->unit, pidx); dd->unit, pidx);
ppd->qib_wq = ppd->qib_wq = alloc_ordered_workqueue(wq_name,
create_singlethread_workqueue(wq_name); WQ_MEM_RECLAIM);
if (!ppd->qib_wq) if (!ppd->qib_wq)
goto wq_error; goto wq_error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment