[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230124004542.29659-1-ville.syrjala@linux.intel.com>
Date: Tue, 24 Jan 2023 02:45:42 +0200
From: Ville Syrjala <ville.syrjala@...ux.intel.com>
To: linux-kernel@...r.kernel.org
Cc: linux-nvme@...ts.infradead.org, Christoph Hellwig <hch@....de>,
Keith Busch <kbusch@...nel.org>,
Chaitanya Kulkarni <kch@...dia.com>,
Gerd Bayer <gbayer@...ux.ibm.com>,
Sagi Grimberg <sagi@...mberg.me>, Jens Axboe <axboe@...com>,
Ville Syrjälä
<ville.syrjala@...ux.intel.com>
Subject: [PATCH] nvme-pci: Switch back to sync probe to fix rootfs mount regression
From: Ville Syrjälä <ville.syrjala@...ux.intel.com>
Async probe caused a regression where we fail to find the
rootfs in time, leading an unbootable machine.
rootdelay=1 can be used as a workaround but that needlessly
slows down the boot by a whole extra second.
To get the best of both worlds perhaps there should be
some kind of async probe flush/sync just before attempting
to mount the rootfs?
In the meantime just switch back to a sync probe to fix
the regression.
Cc: linux-nvme@...ts.infradead.org
Cc: Christoph Hellwig <hch@....de>
Cc: Keith Busch <kbusch@...nel.org>
Cc: Chaitanya Kulkarni <kch@...dia.com>
Cc: Gerd Bayer <gbayer@...ux.ibm.com>
Cc: Sagi Grimberg <sagi@...mberg.me>
Cc: Jens Axboe <axboe@...com>
Fixes: eac3ef262941 ("nvme-pci: split the initial probe from the rest path")
Signed-off-by: Ville Syrjälä <ville.syrjala@...ux.intel.com>
---
drivers/nvme/host/pci.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 1ff8843bc4b3..d0f5e93d977e 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -3514,7 +3514,6 @@ static struct pci_driver nvme_driver = {
.remove = nvme_remove,
.shutdown = nvme_shutdown,
.driver = {
- .probe_type = PROBE_PREFER_ASYNCHRONOUS,
#ifdef CONFIG_PM_SLEEP
.pm = &nvme_dev_pm_ops,
#endif
--
2.39.1
Powered by blists - more mailing lists