diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-02-09 11:25:31 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-03-25 13:51:43 -0400 |
commit | 9e767adbd3961760af5d56efe45fa8217cce7db6 (patch) | |
tree | eb8f94550f6d9df1539eca11186102a7529c07c0 | |
parent | ae458f5a171badcce60bba9024dbdc5488e5e387 (diff) |
libceph: osdc->req_mempool should be backed by a slab pool
ceph_osd_request_cache was introduced a long time ago. Also, osd_req
is about to get a flexible array member, which ceph_osd_request_cache
is going to be aware of.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
-rw-r--r-- | net/ceph/osd_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 109d1f82cac5..f93d0e893f3f 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c | |||
@@ -2648,8 +2648,8 @@ int ceph_osdc_init(struct ceph_osd_client *osdc, struct ceph_client *client) | |||
2648 | round_jiffies_relative(osdc->client->options->osd_idle_ttl)); | 2648 | round_jiffies_relative(osdc->client->options->osd_idle_ttl)); |
2649 | 2649 | ||
2650 | err = -ENOMEM; | 2650 | err = -ENOMEM; |
2651 | osdc->req_mempool = mempool_create_kmalloc_pool(10, | 2651 | osdc->req_mempool = mempool_create_slab_pool(10, |
2652 | sizeof(struct ceph_osd_request)); | 2652 | ceph_osd_request_cache); |
2653 | if (!osdc->req_mempool) | 2653 | if (!osdc->req_mempool) |
2654 | goto out; | 2654 | goto out; |
2655 | 2655 | ||