[PATCH] nvme: invalidate paths when removing contoller

Hannes Reinecke hare at suse.de
Tue Oct 19 22:58:46 PDT 2021


On 10/19/21 5:48 PM, Hannes Reinecke wrote:
> When the I/O from the initial partition scan encounters an error
> it will not necessarily be failed, but might trigger a reconnect
> with the I/O itself being requeued.
> Upon disconnect we need to ensure to flush the requeue list
> independent on the current path, otherwise the I/O will never
> complete.
> 
> Signed-off-by: Hannes Reinecke <hare at suse.de>
> ---
>   drivers/nvme/host/core.c      |  2 +-
>   drivers/nvme/host/multipath.c | 13 +++++++++++++
>   drivers/nvme/host/nvme.h      |  4 ++++
>   3 files changed, 18 insertions(+), 1 deletion(-)
> 
Ignore it; I've found a better way of fixing this.
Patch will be send shortly.

Cheers,

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



More information about the Linux-nvme mailing list