Re: [RFC PATCH] nvme: prevent hang on surprise removal of NVMe disk

From: Hannes Reinecke
Date: Wed Feb 16 2022 - 02:35:14 EST


On 2/15/22 20:17, Christoph Hellwig wrote:
On Mon, Feb 14, 2022 at 10:51:07AM +0100, Markus Blöchl wrote:
After the surprise removal of a mounted NVMe disk the pciehp task
reliably hangs forever with a trace similar to this one:

Do you have a specific reproducer? At least with doing a

echo 1 > /sys/.../remove

while running fsx on a file system I can't actually reproduce it.

You should be able to reproduce it doing a PCI hotplug from qemu.

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer