summaryrefslogtreecommitdiff
path: root/drivers/nvme/host/pci.c
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2018-01-14 12:39:00 +0200
committerChristoph Hellwig <hch@lst.de>2018-01-15 16:20:10 +0100
commit79c48ccf2fec7c10105bd635d3bb1128167b1258 (patch)
treec8d9a3a54dddff50cb9be16ee91af01dba1f10ea /drivers/nvme/host/pci.c
parentbf9ae8c5325c0070d0ec81a849bba8d156f65993 (diff)
downloadlwn-79c48ccf2fec7c10105bd635d3bb1128167b1258.tar.gz
lwn-79c48ccf2fec7c10105bd635d3bb1128167b1258.zip
nvme-pci: serialize pci resets
Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/pci.c')
-rw-r--r--drivers/nvme/host/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 62119078c2bf..dc9a4cf7c1d1 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -2537,7 +2537,7 @@ static void nvme_reset_prepare(struct pci_dev *pdev)
static void nvme_reset_done(struct pci_dev *pdev)
{
struct nvme_dev *dev = pci_get_drvdata(pdev);
- nvme_reset_ctrl(&dev->ctrl);
+ nvme_reset_ctrl_sync(&dev->ctrl);
}
static void nvme_shutdown(struct pci_dev *pdev)