From 5ed8eba1b15b538ca2c74d8130fb3f0a394921ec Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 8 Sep 2010 07:32:54 +0000 Subject: rpc-transport/rdma: while notifying a reply, pickup the correct iobref from request context. Signed-off-by: Raghavendra G Signed-off-by: Vijay Bellur BUG: 1567 ([rdma] data corruption due to read-ahead) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1567 --- rpc/rpc-transport/rdma/src/rdma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rpc') diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c index cd42c6e94e4..57049967b20 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; -- cgit