diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2017-12-06 11:21:20 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-01-25 12:41:40 -0500 |
commit | 1dad3a67fbb03d88c68ca20a4f89296e50600710 (patch) | |
tree | 8aa951aa78eaa39685abf175c60eef572240d0b5 | |
parent | 6e49412016f5f28ae36c3eaa5a36ec787b788951 (diff) |
nvme-rdma: remove redundant boolean for inline_data
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | drivers/nvme/host/rdma.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 38e183461d9d..6c2fdfa4c86a 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c | |||
@@ -66,7 +66,6 @@ struct nvme_rdma_request { | |||
66 | struct ib_sge sge[1 + NVME_RDMA_MAX_INLINE_SEGMENTS]; | 66 | struct ib_sge sge[1 + NVME_RDMA_MAX_INLINE_SEGMENTS]; |
67 | u32 num_sge; | 67 | u32 num_sge; |
68 | int nents; | 68 | int nents; |
69 | bool inline_data; | ||
70 | struct ib_reg_wr reg_wr; | 69 | struct ib_reg_wr reg_wr; |
71 | struct ib_cqe reg_cqe; | 70 | struct ib_cqe reg_cqe; |
72 | struct nvme_rdma_queue *queue; | 71 | struct nvme_rdma_queue *queue; |
@@ -1086,7 +1085,6 @@ static int nvme_rdma_map_sg_inline(struct nvme_rdma_queue *queue, | |||
1086 | sg->length = cpu_to_le32(sg_dma_len(req->sg_table.sgl)); | 1085 | sg->length = cpu_to_le32(sg_dma_len(req->sg_table.sgl)); |
1087 | sg->type = (NVME_SGL_FMT_DATA_DESC << 4) | NVME_SGL_FMT_OFFSET; | 1086 | sg->type = (NVME_SGL_FMT_DATA_DESC << 4) | NVME_SGL_FMT_OFFSET; |
1088 | 1087 | ||
1089 | req->inline_data = true; | ||
1090 | req->num_sge++; | 1088 | req->num_sge++; |
1091 | return 0; | 1089 | return 0; |
1092 | } | 1090 | } |
@@ -1158,7 +1156,6 @@ static int nvme_rdma_map_data(struct nvme_rdma_queue *queue, | |||
1158 | int count, ret; | 1156 | int count, ret; |
1159 | 1157 | ||
1160 | req->num_sge = 1; | 1158 | req->num_sge = 1; |
1161 | req->inline_data = false; | ||
1162 | refcount_set(&req->ref, 2); /* send and recv completions */ | 1159 | refcount_set(&req->ref, 2); /* send and recv completions */ |
1163 | 1160 | ||
1164 | c->common.flags |= NVME_CMD_SGL_METABUF; | 1161 | c->common.flags |= NVME_CMD_SGL_METABUF; |