]> www.infradead.org Git - users/hch/misc.git/commit
nvme-multipath: defer partition scanning
authorKeith Busch <kbusch@kernel.org>
Tue, 15 Oct 2024 14:30:17 +0000 (07:30 -0700)
committerKeith Busch <kbusch@kernel.org>
Tue, 15 Oct 2024 15:32:07 +0000 (08:32 -0700)
commit1f021341eef41e77a633186e9be5223de2ce5d48
treea2cdad083214e04ec803a01be157bdd16834e71e
parent0ce96a6708f34280a536263ee5c67e20c433dcce
nvme-multipath: defer partition scanning

We need to suppress the partition scan from occuring within the
controller's scan_work context. If a path error occurs here, the IO will
wait until a path becomes available or all paths are torn down, but that
action also occurs within scan_work, so it would deadlock. Defer the
partion scan to a different context that does not block scan_work.

Reported-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h