[PATCH 7/7] nvme-fc: update tagset nr_hw_queues after queues reinit
Sagi Grimberg
sagi at grimberg.me
Thu Jun 29 04:09:12 PDT 2017
We might have more/less queues once we reconnect/reset. For
example due to cpu going online/offline or controller constraints.
Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
---
drivers/nvme/host/fc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
index 5ee821d9cb75..ffe0589969bd 100644
--- a/drivers/nvme/host/fc.c
+++ b/drivers/nvme/host/fc.c
@@ -2277,6 +2277,8 @@ nvme_fc_reinit_io_queues(struct nvme_fc_ctrl *ctrl)
if (ret)
goto out_delete_hw_queues;
+ blk_mq_update_nr_hw_queues(&ctrl->tag_set, nr_io_queues);
+
return 0;
out_delete_hw_queues:
--
2.7.4
More information about the Linux-nvme
mailing list