diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2018-06-29 16:50:00 -0600 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-07-23 09:35:18 +0200 |
commit | 59e29ce66bc52ebd6d0cb450f13079c7e913430d (patch) | |
tree | 8882b25c96d7db76f083bb6ecaad24676e55dc08 /drivers/nvme/host/rdma.c | |
parent | 202093848cac2da7d92ae666b51b7109bbab633c (diff) | |
download | linux-59e29ce66bc52ebd6d0cb450f13079c7e913430d.tar.bz2 |
nvme: cache struct nvme_ctrl reference to struct nvme_request
We will need to reference the controller in the setup and completion
time for tracing and future traffic based keep alive support.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/rdma.c')
-rw-r--r-- | drivers/nvme/host/rdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 363f73fe549c..bb6e26fa8331 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -288,6 +288,7 @@ static int nvme_rdma_init_request(struct blk_mq_tag_set *set, struct ib_device *ibdev = dev->dev; int ret; + nvme_req(rq)->ctrl = &ctrl->ctrl; ret = nvme_rdma_alloc_qe(ibdev, &req->sqe, sizeof(struct nvme_command), DMA_TO_DEVICE); if (ret) |