[PATCH] nvme-multipath: defer partition scanning

Hannes Reinecke hare at suse.de
Mon Oct 21 03:23:29 PDT 2024


On 10/15/24 16:31, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
> 
> We need to suppress the partition scan from occuring within the controller's
> scan_work context. If a path error occurs here, the submission 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 a
> different one that does not block scan_work.
> 
> Reported-by: Hannes Reinecke <hare at suse.de>
> Signed-off-by: Keith Busch <kbusch at kernel.org>
> 
> will be ignored, and an empty message aborts the commit.
> ---
>   drivers/nvme/host/multipath.c | 39 +++++++++++++++++++++++++++++------
>   drivers/nvme/host/nvme.h      |  1 +
>   2 files changed, 34 insertions(+), 6 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare at suse.de>
Tested-by: Hannes Reinecke <hare at suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare at suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich



More information about the Linux-nvme mailing list