From 18508424617c5f78d1ba6c0171b150cd495e470f Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Wed, 4 Mar 2020 15:08:20 -0700 Subject: [PATCH] nvme_rdma: rearrange spdk_nvme_rdma_req. This allows it to fit on three cachelines instead of four. Change-Id: I2510b50ffcefb77fa570e738b2c6588749f30a00 Signed-off-by: Seth Howell Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1143 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris Reviewed-by: Aleksey Marchuk --- lib/nvme/nvme_rdma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nvme/nvme_rdma.c b/lib/nvme/nvme_rdma.c index f572081530..4a27dac770 100644 --- a/lib/nvme/nvme_rdma.c +++ b/lib/nvme/nvme_rdma.c @@ -188,6 +188,8 @@ struct nvme_rdma_qpair { struct spdk_nvme_rdma_req { int id; + bool request_ready_to_put; + struct ibv_send_wr send_wr; struct nvme_request *req; @@ -195,8 +197,6 @@ struct spdk_nvme_rdma_req { struct ibv_sge send_sgl[NVME_RDMA_DEFAULT_TX_SGE]; TAILQ_ENTRY(spdk_nvme_rdma_req) link; - - bool request_ready_to_put; }; static const char *rdma_cm_event_str[] = {