[PATCH V4 4/9] nvme: pci: use admin queue timeout over NVME_ADMIN_TIMEOUT
Hannes Reinecke
hare at suse.de
Mon May 11 02:48:35 PDT 2026
On 5/8/26 15:33, Maurizio Lombardi wrote:
> While tearing down its queues, nvme-pci uses NVME_ADMIN_TIMEOUT as its
> timeout target. Instead, use the configured admin queue's timeout value
> to match the device's existing timeout setting.
>
> Reviewed-by: Daniel Wagner <dwagner at suse.de>
> Signed-off-by: Maurizio Lombardi <mlombard at redhat.com>
> ---
> drivers/nvme/host/pci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
> index 9fd04cd7c5cb..dd1bc3807a2d 100644
> --- a/drivers/nvme/host/pci.c
> +++ b/drivers/nvme/host/pci.c
> @@ -3094,7 +3094,7 @@ static bool __nvme_delete_io_queues(struct nvme_dev *dev, u8 opcode)
> unsigned long timeout;
>
> retry:
> - timeout = NVME_ADMIN_TIMEOUT;
> + timeout = dev->ctrl.admin_timeout;
> while (nr_queues > 0) {
> if (nvme_delete_queue(&dev->queues[nr_queues], opcode))
> break;
Reviewed-by: Hannes Reinecke <hare at kernel.org>
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