aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdmund Nadolski <[email protected]>2019-09-03 14:08:47 -0600
committerSagi Grimberg <[email protected]>2019-09-12 08:50:45 -0700
commit03894b7a896dc6eb3870e197bd7414ab0c947cbf (patch)
treea3be156f78a3a9322fab5e87c2577611f326d189
parentc26aa572027d438de9cc311aaebcbe972f698c24 (diff)
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 <[email protected]> Reviewed-by: Keith Busch <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Sagi Grimberg <[email protected]>
-rw-r--r--drivers/nvme/host/core.c3
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);