Re: [PATCH v5 1/2] nvme: cache struct nvme_ctrl reference to struct nvme_request

From: James Smart
Date: Wed Jun 27 2018 - 12:40:37 EST




On 6/27/2018 5:53 AM, Johannes Thumshirn wrote:
From: Sagi Grimberg <sagi@xxxxxxxxxxx>

We will need to reference the controller in the setup and completion
time for tracing and future traffic based keep alive support.

Signed-off-by: Sagi Grimberg <sagi@xxxxxxxxxxx>

---
Changes to v4:
- Move caching from nvme_setup_cmd to .init_request (Keith)
---
drivers/nvme/host/core.c | 1 +
drivers/nvme/host/fc.c | 1 +
drivers/nvme/host/nvme.h | 1 +
drivers/nvme/host/pci.c | 2 ++
drivers/nvme/host/rdma.c | 1 +
drivers/nvme/target/loop.c | 1 +
6 files changed, 7 insertions(+)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index e541fe268bcf..99dd62c1076c 100644


good for the fc side...

Reviewed-by: James Smart <james.smart@xxxxxxxxxxxx>