diff options
author | Sagi Grimberg | 2018-06-30 00:50:00 +0200 |
---|---|---|
committer | Christoph Hellwig | 2018-07-23 09:35:18 +0200 |
commit | 59e29ce66bc52ebd6d0cb450f13079c7e913430d (patch) | |
tree | 8882b25c96d7db76f083bb6ecaad24676e55dc08 /drivers/nvme/host/fc.c | |
parent | nvmet-rdma: add an error flow for post_recv failures (diff) | |
download | kernel-qcow2-linux-59e29ce66bc52ebd6d0cb450f13079c7e913430d.tar.gz kernel-qcow2-linux-59e29ce66bc52ebd6d0cb450f13079c7e913430d.tar.xz kernel-qcow2-linux-59e29ce66bc52ebd6d0cb450f13079c7e913430d.zip |
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/fc.c')
-rw-r--r-- | drivers/nvme/host/fc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index 41d45a1b5c62..9cc33752539a 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -1737,6 +1737,7 @@ nvme_fc_init_request(struct blk_mq_tag_set *set, struct request *rq, int queue_idx = (set == &ctrl->tag_set) ? hctx_idx + 1 : 0; struct nvme_fc_queue *queue = &ctrl->queues[queue_idx]; + nvme_req(rq)->ctrl = &ctrl->ctrl; return __nvme_fc_init_request(ctrl, queue, op, rq, queue->rqcnt++); } |