From cfa6c85334fd62175aa114d779873b6790d6db8a Mon Sep 17 00:00:00 2001 From: Mohammed Rafi KC Date: Wed, 11 Mar 2015 12:20:38 +0530 Subject: rdma:properly handle iobuf_pool when rdma transport is unloaded We are registering iobuf_pool with rdma. When rdma transport is unloaded, we need to deregister all the buffers registered with rdma. Otherwise iobuf_arena destroy will fail. Also if rdma.so is loaded again, then register iobuf_pool with rdma Change-Id: Ic197721a44ba11dce41e03058e0a73901248c541 BUG: 1200704 Signed-off-by: Mohammed Rafi KC Reviewed-on: http://review.gluster.org/9854 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Raghavendra Talur --- rpc/rpc-transport/rdma/src/rdma.h | 1 + 1 file changed, 1 insertion(+) (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 0a9fd35a0b1..cf4536dc9bd 100644 --- a/rpc/rpc-transport/rdma/src/rdma.h +++ b/rpc/rpc-transport/rdma/src/rdma.h @@ -345,6 +345,7 @@ struct __gf_rdma_ctx { gf_rdma_device_t *device; struct rdma_event_channel *rdma_cm_event_channel; pthread_t rdma_cm_thread; + pthread_mutex_t lock; int32_t dlcount; }; typedef struct __gf_rdma_ctx gf_rdma_ctx_t; -- cgit