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/target | |
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/target')
-rw-r--r-- | drivers/nvme/target/loop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c index d8d91f04bd7e..af7fbf4132b0 100644 --- a/drivers/nvme/target/loop.c +++ b/drivers/nvme/target/loop.c @@ -227,6 +227,7 @@ static int nvme_loop_init_request(struct blk_mq_tag_set *set, { struct nvme_loop_ctrl *ctrl = set->driver_data; + nvme_req(req)->ctrl = &ctrl->ctrl; return nvme_loop_init_iod(ctrl, blk_mq_rq_to_pdu(req), (set == &ctrl->tag_set) ? hctx_idx + 1 : 0); } |