diff options
author | Edmund Nadolski <edmund.nadolski@intel.com> | 2019-09-03 22:08:47 +0200 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2019-09-12 17:50:45 +0200 |
commit | 03894b7a896dc6eb3870e197bd7414ab0c947cbf (patch) | |
tree | a3be156f78a3a9322fab5e87c2577611f326d189 /drivers/nvme | |
parent | nvme: Treat discovery subsystems as unique subsystems (diff) | |
download | linux-03894b7a896dc6eb3870e197bd7414ab0c947cbf.tar.xz linux-03894b7a896dc6eb3870e197bd7414ab0c947cbf.zip |
nvme: include admin_q sync with nvme_sync_queues
nvme_sync_queues currently syncs all namespace queues, but should
also sync the admin queue, if present.
Signed-off-by: Edmund Nadolski <edmund.nadolski@intel.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 0545eb97d838..1777c8e6dffd 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -4010,6 +4010,9 @@ void nvme_sync_queues(struct nvme_ctrl *ctrl) list_for_each_entry(ns, &ctrl->namespaces, list) blk_sync_queue(ns->queue); up_read(&ctrl->namespaces_rwsem); + + if (ctrl->admin_q) + blk_sync_queue(ctrl->admin_q); } EXPORT_SYMBOL_GPL(nvme_sync_queues); |