summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammed Rafi KC <rkavunga@redhat.com>2015-03-04 14:37:05 +0530
committerRaghavendra Bhat <raghavendra@redhat.com>2015-03-27 04:34:39 -0700
commit7095d05ae3e06c2ea0f01b18cb117a817316fb9e (patch)
tree44654993ec5c97ac1bd305f1ef4d78b028cb4f61
parent7febb66a26f01c94f8e76bb90cf4edd7c6cc1421 (diff)
rdma:setting wrong remote memory.
Back port of : http://review.gluster.org/9794 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: 1202212 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> Reviewed-on: http://review.gluster.org/9890 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
-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 cb5ce77291e..55e9638e037 100644
--- a/rpc/rpc-transport/rdma/src/rdma.c
+++ b/rpc/rpc-transport/rdma/src/rdma.c
@@ -3585,8 +3585,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++;