From a8212606e23312fabd5c2068ade05efacae9c086 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 12 Oct 2010 04:13:19 +0000 Subject: rpc-transport/rdma: associate mem-pools with device instead of transport. - this will help to reduce memory usage of glusterfs process. Signed-off-by: Raghavendra G Signed-off-by: Anand V. Avati BUG: 513 (Introduce 0 copy rdma) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=513 --- rpc/rpc-transport/rdma/src/rdma.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rpc/rpc-transport/rdma/src/rdma.h') diff --git a/rpc/rpc-transport/rdma/src/rdma.h b/rpc/rpc-transport/rdma/src/rdma.h index a408ef4943d..4bb5a3759e1 100644 --- a/rpc/rpc-transport/rdma/src/rdma.h +++ b/rpc/rpc-transport/rdma/src/rdma.h @@ -313,6 +313,9 @@ struct __rdma_device { struct ibv_cq *send_cq, *recv_cq; rdma_queue_t sendq, recvq; pthread_t send_thread, recv_thread; + struct mem_pool *request_ctx_pool; + struct mem_pool *ioq_pool; + struct mem_pool *reply_info_pool; }; typedef struct __rdma_device rdma_device_t; @@ -377,10 +380,6 @@ struct __rdma_private { pthread_mutex_t recv_mutex; pthread_cond_t recv_cond; - struct mem_pool *request_ctx_pool; - struct mem_pool *ioq_pool; - struct mem_pool *reply_info_pool; - /* used during rdma_handshake */ struct { struct rdma_nbio incoming; -- cgit