From: Ilya Dryomov Date: Tue, 9 Feb 2016 16:25:31 +0000 (+0100) Subject: libceph: osdc->req_mempool should be backed by a slab pool X-Git-Tag: v4.14-rc1~3519^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e767adbd3961760af5d56efe45fa8217cce7db6;p=platform%2Fkernel%2Flinux-rpi.git 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 --- 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) round_jiffies_relative(osdc->client->options->osd_idle_ttl)); err = -ENOMEM; - osdc->req_mempool = mempool_create_kmalloc_pool(10, - sizeof(struct ceph_osd_request)); + osdc->req_mempool = mempool_create_slab_pool(10, + ceph_osd_request_cache); if (!osdc->req_mempool) goto out;