Commit 1c99e299 authored by Bhaktipriya Shridhar's avatar Bhaktipriya Shridhar Committed by Doug Ledford

IB/mad: Remove deprecated create_singlethread_workqueue

The workqueue "ib_nl" queues work items &ib_nl_timed_work and
&mad_agent_priv->local_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>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 4534d859
...@@ -3177,7 +3177,7 @@ static int ib_mad_port_open(struct ib_device *device, ...@@ -3177,7 +3177,7 @@ static int ib_mad_port_open(struct ib_device *device,
goto error7; goto error7;
snprintf(name, sizeof name, "ib_mad%d", port_num); snprintf(name, sizeof name, "ib_mad%d", port_num);
port_priv->wq = create_singlethread_workqueue(name); port_priv->wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
if (!port_priv->wq) { if (!port_priv->wq) {
ret = -ENOMEM; ret = -ENOMEM;
goto error8; goto error8;
......
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