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/pci.c | |
parent | 202093848cac2da7d92ae666b51b7109bbab633c (diff) |
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/pci.c')
-rw-r--r-- | drivers/nvme/host/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index ba943f211687..8dcae11bbf3a 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -418,6 +418,8 @@ static int nvme_init_request(struct blk_mq_tag_set *set, struct request *req, BUG_ON(!nvmeq); iod->nvmeq = nvmeq; + + nvme_req(req)->ctrl = &dev->ctrl; return 0; } |