aboutsummaryrefslogtreecommitdiff
path: root/drivers/nvme/host/rdma.c
diff options
context:
space:
mode:
authorGravatar Daniel Wagner <dwagner@suse.de> 2023-12-18 17:59:50 +0100
committerGravatar Keith Busch <kbusch@kernel.org> 2023-12-19 09:09:58 -0800
commit0372dd4e36171708f90192d5d4a3dcab7159df09 (patch)
tree9498db19bfc0ee1ea7ae74549b01286e15ccdc27 /drivers/nvme/host/rdma.c
parentnvme: move ns id info to struct nvme_ns_head (diff)
downloadlinux-0372dd4e36171708f90192d5d4a3dcab7159df09.tar.gz
linux-0372dd4e36171708f90192d5d4a3dcab7159df09.tar.bz2
linux-0372dd4e36171708f90192d5d4a3dcab7159df09.zip
nvme: refactor ns info helpers
Pass in the nvme_ns_head pointer directly. This reduces the necessity on the caller side have the nvme_ns data structure present. Thus we can refactor the caller side in the next step as well. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Daniel Wagner <dwagner@suse.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme/host/rdma.c')
-rw-r--r--drivers/nvme/host/rdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
index be2a3e5884c0..bc90ec3c51b0 100644
--- a/drivers/nvme/host/rdma.c
+++ b/drivers/nvme/host/rdma.c
@@ -2012,7 +2012,7 @@ static blk_status_t nvme_rdma_queue_rq(struct blk_mq_hw_ctx *hctx,
queue->pi_support &&
(c->common.opcode == nvme_cmd_write ||
c->common.opcode == nvme_cmd_read) &&
- nvme_ns_has_pi(ns))
+ nvme_ns_has_pi(ns->head))
req->use_sig_mr = true;
else
req->use_sig_mr = false;