[PATCH v2] nvme-multipath: fix lockdep WARN due to partition scan work
Keith Busch
kbusch at kernel.org
Mon Nov 17 08:14:26 PST 2025
On Mon, Nov 17, 2025 at 11:23:39AM +0900, Shin'ichiro Kawasaki wrote:
> Blktests test cases nvme/014, 057 and 058 fail occasionally due to a
> lockdep WARN. As reported in the Closes tag URL, the WARN indicates that
> a deadlock can happen due to the dependency among disk->open_mutex,
> kblockd workqueue completion and partition_scan_work completion.
>
> To avoid the lockdep WARN and the potential deadlock, cut the dependency
> by running the partition_scan_work not by kblockd workqueue but by
> nvme_wq.
Thanks, applied to nvme-6.18.
More information about the Linux-nvme
mailing list