]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: single thread wq for invalidate, truncate
authorSage Weil <sage@newdream.net>
Thu, 1 Oct 2009 21:16:01 +0000 (14:16 -0700)
committerSage Weil <sage@newdream.net>
Thu, 1 Oct 2009 21:16:01 +0000 (14:16 -0700)
Keep multiple threads for the writeback.

src/kernel/super.c

index 5942ce480a317d3f63d43ef00f1064009e5ee877..33082dd0ad84c05555c13c1af96558c2369a5221 100644 (file)
@@ -598,10 +598,10 @@ static struct ceph_client *ceph_create_client(void)
        client->wb_wq = create_workqueue("ceph-writeback");
        if (client->wb_wq == NULL)
                goto fail;
-       client->pg_inv_wq = create_workqueue("ceph-pg-invalid");
+       client->pg_inv_wq = create_singlethread_workqueue("ceph-pg-invalid");
        if (client->pg_inv_wq == NULL)
                goto fail_wb_wq;
-       client->trunc_wq = create_workqueue("ceph-trunc");
+       client->trunc_wq = create_singlethread_workqueue("ceph-trunc");
        if (client->trunc_wq == NULL)
                goto fail_pg_inv_wq;