diff options
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-08-15 13:58:07 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-10-07 16:54:23 -0400 |
commit | 1c99e299ba62f72b24e8ec2f4436f574d7433f11 (patch) | |
tree | 9a39e576e9d8587cb7fa99802182889d00d76dda | |
parent | 4534d859020190c8fa04d899ddca656191339de1 (diff) |
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: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/core/mad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c index 95d33a3572e6..40cbd6bdb73b 100644 --- a/drivers/infiniband/core/mad.c +++ b/drivers/infiniband/core/mad.c | |||
@@ -3177,7 +3177,7 @@ static int ib_mad_port_open(struct ib_device *device, | |||
3177 | goto error7; | 3177 | goto error7; |
3178 | 3178 | ||
3179 | snprintf(name, sizeof name, "ib_mad%d", port_num); | 3179 | snprintf(name, sizeof name, "ib_mad%d", port_num); |
3180 | port_priv->wq = create_singlethread_workqueue(name); | 3180 | port_priv->wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM); |
3181 | if (!port_priv->wq) { | 3181 | if (!port_priv->wq) { |
3182 | ret = -ENOMEM; | 3182 | ret = -ENOMEM; |
3183 | goto error8; | 3183 | goto error8; |