diff options
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-08-15 20:59:10 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-10-07 23:54:24 +0300 |
commit | a190d3b07c9f8046784681fa6167005711ed3f5e (patch) | |
tree | 8730009ef7cbad0e1f5f7bbc3ef52ffdb56a3c63 /drivers/infiniband/core/ucma.c | |
parent | 01013cdf06d930dbc293d001ccf509200e403057 (diff) | |
download | linux-a190d3b07c9f8046784681fa6167005711ed3f5e.tar.xz |
IB/ucma: 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 "close_wq" queues work items &ctx->close_work (maps to
ucma_close_id) and &con_req_eve->close_work (maps to
ucma_close_event_id). 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>
Diffstat (limited to 'drivers/infiniband/core/ucma.c')
-rw-r--r-- | drivers/infiniband/core/ucma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c index 2825ece91d3c..9520154f1d7c 100644 --- a/drivers/infiniband/core/ucma.c +++ b/drivers/infiniband/core/ucma.c @@ -1638,7 +1638,8 @@ static int ucma_open(struct inode *inode, struct file *filp) if (!file) return -ENOMEM; - file->close_wq = create_singlethread_workqueue("ucma_close_id"); + file->close_wq = alloc_ordered_workqueue("ucma_close_id", + WQ_MEM_RECLAIM); if (!file->close_wq) { kfree(file); return -ENOMEM; |