Patchwork [BUG:1567] rpc-transport/rdma: while notifying a reply, pickup the correct iobref from request context.

login
register
Submitter Raghavendra G
Date 2010-09-08 13:02:54
Message ID <20100908130254.GA3728@dev.gluster.com>
Download mbox | patch
Permalink /patch/4677/
State Accepted
Delegated to: Vijay Bellur
Headers show

Comments

Raghavendra G - 2010-09-08 13:02:54
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
---
 rpc/rpc-transport/rdma/src/rdma.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c
index cd42c6e..5704996 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;