nvmf: remaning changes related to nvmf hooks

Change-Id: I6780fa43cebd9f48d1ae0ea6fbeb92a95c4dfa15
Signed-off-by: zkhatami88 <z.khatami88@gmail.com>
Reviewed-on: https://review.gerrithub.io/c/443653 (master)
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447454
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Zahra Khatami 2019-02-05 12:51:53 +01:00 committed by Ben Walker
parent 1e0e636351
commit bf881b09a7

View File

@ -1326,8 +1326,8 @@ spdk_nvmf_rdma_request_fill_iovs(struct spdk_nvmf_rdma_transport *rtransport,
rdma_req->data.wr.sg_list[i].lkey = ((struct ibv_mr *)spdk_mem_map_translate(device->map,
(uint64_t)buf, &translation_len))->lkey;
} else {
rdma_req->data.wr.sg_list[i].lkey = *((uint64_t *)spdk_mem_map_translate(device->map,
(uint64_t)buf, &translation_len));
rdma_req->data.wr.sg_list[i].lkey = spdk_mem_map_translate(device->map,
(uint64_t)buf, &translation_len);
}
length -= rdma_req->req.iov[i].iov_len;