[PATCH 7/7] nvme: remove failed controllers directly from probe/reset context

Keith Busch keith.busch at intel.com
Fri Oct 2 14:54:20 PDT 2015

On Fri, 2 Oct 2015, Christoph Hellwig wrote:
> Now that all probing and resets happen from workqueue context we can remove
> the controller directly without any risk of deadlocking.
> Signed-off-by: Christoph Hellwig <hch at lst.de>

I don't know about this one. If you call pci_stop_and_remove_bus_device(),
that will get to the driver's ->remove() callback in the same context. The
first thing this driver does is flush the probe and reset work, and
I don't think a work queue can flush itself.

More information about the Linux-nvme mailing list