diff options
author | Raghavendra G <raghavendra@gluster.com> | 2010-10-12 04:13:19 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-10-25 02:06:19 -0700 |
commit | a8212606e23312fabd5c2068ade05efacae9c086 (patch) | |
tree | 242b7091650817fe28888c95b05a8f40b23e7960 /rpc/rpc-transport/rdma/src/rdma.h | |
parent | 959f051b0c39f114d54b5bb303dd2241603d7607 (diff) |
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 <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 513 (Introduce 0 copy rdma)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=513
Diffstat (limited to 'rpc/rpc-transport/rdma/src/rdma.h')
-rw-r--r-- | rpc/rpc-transport/rdma/src/rdma.h | 7 |
1 files changed, 3 insertions, 4 deletions
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; |