Commit 01e6acc4 authored by Tejun Heo's avatar Tejun Heo Committed by Sage Weil

ceph: fsc->*_wq's aren't used in memory reclaim path

fsc->*_wq's aren't depended upon during memory reclaim.  Convert to
alloc_workqueue() w/o WQ_MEM_RECLAIM.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: Sage Weil <sage@newdream.net>
Cc: ceph-devel@vger.kernel.org
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent b0aee351
...@@ -444,13 +444,17 @@ struct ceph_fs_client *create_fs_client(struct ceph_mount_options *fsopt, ...@@ -444,13 +444,17 @@ struct ceph_fs_client *create_fs_client(struct ceph_mount_options *fsopt,
goto fail_client; goto fail_client;
err = -ENOMEM; err = -ENOMEM;
fsc->wb_wq = create_workqueue("ceph-writeback"); /*
* The number of concurrent works can be high but they don't need
* to be processed in parallel, limit concurrency.
*/
fsc->wb_wq = alloc_workqueue("ceph-writeback", 0, 1);
if (fsc->wb_wq == NULL) if (fsc->wb_wq == NULL)
goto fail_bdi; goto fail_bdi;
fsc->pg_inv_wq = create_singlethread_workqueue("ceph-pg-invalid"); fsc->pg_inv_wq = alloc_workqueue("ceph-pg-invalid", 0, 1);
if (fsc->pg_inv_wq == NULL) if (fsc->pg_inv_wq == NULL)
goto fail_wb_wq; goto fail_wb_wq;
fsc->trunc_wq = create_singlethread_workqueue("ceph-trunc"); fsc->trunc_wq = alloc_workqueue("ceph-trunc", 0, 1);
if (fsc->trunc_wq == NULL) if (fsc->trunc_wq == NULL)
goto fail_pg_inv_wq; goto fail_pg_inv_wq;
......
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