Skip to contentSkip to conversation

nvme-pci: Switch back to sync probe to fix rootfs mount regression

PATCH In review Ville Syrjala 3 participants 6 messages Jan 24, 2023 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme-pci: Switch back to sync probe to fix rootfs mount regression

From: Ville Syrjälä <[email protected]>

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 Christoph Hellwig <[email protected]>
Cc Keith Busch <[email protected]>
Cc Chaitanya Kulkarni <[email protected]>
Cc Gerd Bayer <[email protected]>
Cc Sagi Grimberg <[email protected]>
Cc Jens Axboe <[email protected]>
Fixes eac3ef262941 ("nvme-pci: split the initial probe from the rest path")
---
 drivers/nvme/host/pci.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nvme/host/pci.c +0 -1
index 1ff8843bc4b3..d0f5e93d977e 100644
@@ -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
Signature · 1 line
2.39.1
#1 lore raw

Err, no. We're not going to randomly revert things. If you want to be productive check the one liner Keith reported in reply to the last report.

#2 lore raw
Quoted 3 lines · Christoph Hellwig

Err, no. We're not going to randomly revert things. If you want to be productive check the one liner Keith reported in reply to the last report.

No idea what that previous report is. Care to share a link?

Signature · 2 lines
Ville Syrjälä
Intel
#3 lore raw
Quoted 6 lines · Ville Syrjälä
Quoted 3 lines · Christoph Hellwig

Err, no. We're not going to randomly revert things. If you want to be productive check the one liner Keith reported in reply to the last report.

No idea what that previous report is. Care to share a link?

https://lore.kernel.org/linux-nvme/[email protected]/T/#m759092f541ea29fcb41911890307e70868636a45

Patch to test:

https://lore.kernel.org/linux-nvme/[email protected]/T/#md13c22b29cd81bd0ce9167c271c582005ba30550

maintainer
#4 lore raw
Quoted 6 lines · Christoph Hellwig
Quoted 5 lines · Ville Syrjälä
Quoted 3 lines · Christoph Hellwig

Err, no. We're not going to randomly revert things. If you want to be productive check the one liner Keith reported in reply to the last report.

Quoted 7 lines
Quoted 1 line

No idea what that previous report is. Care to share a link?

https://lore.kernel.org/linux-nvme/[email protected]/T/#m759092f541ea29fcb41911890307e70868636a45

Patch to test:

https://lore.kernel.org/linux-nvme/[email protected]/T/#md13c22b29cd81bd0ce9167c271c582005ba30550

I'll post the official patch if someone can let me know if it's successful. Or I can potentially setup a VM to verify myself, but I probably won't be able to get to that till next week.

#5 lore raw
Quoted 11 lines · Keith Busch
Quoted 10 lines · Christoph Hellwig
Quoted 6 lines · Ville Syrjälä
Quoted 3 lines · Christoph Hellwig

Err, no. We're not going to randomly revert things. If you want to be productive check the one liner Keith reported in reply to the last report.

No idea what that previous report is. Care to share a link?

https://lore.kernel.org/linux-nvme/[email protected]/T/#m759092f541ea29fcb41911890307e70868636a45

Quoted 7 lines
Quoted 3 lines

Patch to test:

https://lore.kernel.org/linux-nvme/[email protected]/T/#md13c22b29cd81bd0ce9167c271c582005ba30550

I'll post the official patch if someone can let me know if it's successful. Or I can potentially setup a VM to verify myself, but I probably won't be able to get to that till next week.

Appears to work here. I threw a tested-by to the original thread.

Signature · 2 lines
Ville Syrjälä
Intel