summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport/rdma/src
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-09-08 07:32:54 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-08 07:02:10 -0700
commit5ed8eba1b15b538ca2c74d8130fb3f0a394921ec (patch)
tree38c24f55db48ad0f256abce5c184450d7f7d70c2 /rpc/rpc-transport/rdma/src
parent5ebe2fdfaea372c139db2f6d8afe32aa113c0f8f (diff)
rpc-transport/rdma: while notifying a reply, pickup the correct iobref from request context.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1567 ([rdma] data corruption due to read-ahead) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1567
Diffstat (limited to 'rpc/rpc-transport/rdma/src')
-rw-r--r--rpc/rpc-transport/rdma/src/rdma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c
index cd42c6e94..57049967b 100644
--- a/rpc/rpc-transport/rdma/src/rdma.c
+++ b/rpc/rpc-transport/rdma/src/rdma.c
@@ -3129,10 +3129,10 @@ rdma_recv_reply (rdma_peer_t *peer, rdma_post_t *post)
}
ctx = rpc_req->conn_private;
- if ((post->ctx.iobref != NULL) && (ctx->iobref != NULL)) {
- iobref_merge (post->ctx.iobref, ctx->iobref);
+ if ((post->ctx.iobref != NULL) && (ctx->rsp_iobref != NULL)) {
+ iobref_merge (post->ctx.iobref, ctx->rsp_iobref);
} else if (post->ctx.iobref == NULL) {
- post->ctx.iobref = iobref_ref (ctx->iobref);
+ post->ctx.iobref = iobref_ref (ctx->rsp_iobref);
}
ret = 0;