nvme-rdma: introduce nvme_rdma_sgl structure
authorIsrael Rukshin <israelr@mellanox.com>
Tue, 19 May 2020 14:05:55 +0000 (17:05 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 27 May 2020 05:12:39 +0000 (07:12 +0200)
commit324d9e7814dd9c76bb3aebf2529b02149c340d48
treed99c87f542cde731ee6f24052fb00297d820c53a
parentba7ca2ae029607c7eb2c18e37e8bc0d2252d3d12
nvme-rdma: introduce nvme_rdma_sgl structure

Remove first_sgl pointer from struct nvme_rdma_request and use pointer
arithmetic instead. The inline scatterlist, if exists, will be located
right after the nvme_rdma_request. This patch is needed as a preparation
for adding PI support.

Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c