summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport
diff options
context:
space:
mode:
authorMohammed Rafi KC <rkavunga@redhat.com>2015-03-04 14:37:05 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-03-04 22:08:05 -0800
commite08aea2fd67a06275423ded157431305a7925cf6 (patch)
treeff304ca4e9cfdf979a9e316b79fc8a63f186871d /rpc/rpc-transport
parent4a8384fe76aeef652554c48df737d3178eb0160c (diff)
rdma:setting wrong remote memory.
when we send more than one work request in a single call, the remote addr is always setting as the first address of the vector. Change-Id: I55aea7bd6542abe22916719a139f7c8f73334d26 BUG: 1197548 Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com> Reviewed-on: http://review.gluster.org/9794 Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'rpc/rpc-transport')
-rw-r--r--rpc/rpc-transport/rdma/src/rdma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c
index b324fd266db..020974865dc 100644
--- a/rpc/rpc-transport/rdma/src/rdma.c
+++ b/rpc/rpc-transport/rdma/src/rdma.c
@@ -3587,8 +3587,8 @@ gf_rdma_do_reads (gf_rdma_peer_t *peer, gf_rdma_post_t *post,
wr[i].opcode = IBV_WR_RDMA_READ;
wr[i].send_flags = IBV_SEND_SIGNALED;
wr[i].wr.rdma.remote_addr =
- readch->rc_target.rs_offset;
- wr[i].wr.rdma.rkey = readch->rc_target.rs_handle;
+ readch[i].rc_target.rs_offset;
+ wr[i].wr.rdma.rkey = readch[i].rc_target.rs_handle;
ptr += readch[i].rc_target.rs_length;
total_ref++;