summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport/rdma/src
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-09-01 03:44:12 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-01 05:16:15 -0700
commite7b0551ef5eb9a17ab97c34fc148de880b546217 (patch)
treec942528b5e529499608d7b65c6de22849362b31c /rpc/rpc-transport/rdma/src
parent222b98ee5c38cbe4119718603f0d8d9a3a2d7fbc (diff)
rpc-transport/rdma: set whether pollin data is for request/reply.
- with implementation of call backs client and server can both recieve request/reply. Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1488 (rdma client fails to connect to the servers) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1488
Diffstat (limited to 'rpc/rpc-transport/rdma/src')
-rw-r--r--rpc/rpc-transport/rdma/src/rdma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c
index ceb4ee3f6..4d210f2ee 100644
--- a/rpc/rpc-transport/rdma/src/rdma.c
+++ b/rpc/rpc-transport/rdma/src/rdma.c
@@ -3048,6 +3048,8 @@ rdma_pollin_notify (rdma_peer_t *peer, rdma_post_t *post)
__rdma_request_context_destroy (request_context);
}
pthread_mutex_unlock (&priv->write_mutex);
+
+ pollin->is_reply = 1;
}
ret = rpc_transport_notify (peer->trans, RPC_TRANSPORT_MSG_RECEIVED,