summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport/rdma/src/rdma.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/rpc-transport/rdma/src/rdma.c')
-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++;