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
This commit is contained in:
parent
5ebe2fdfae
commit
5ed8eba1b1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user