Commit 458f8470 authored by Keith Busch's avatar Keith Busch Committed by Yang Yingliang
Browse files

nvme-pci: Don't disable on timeout in reset state



mainline inclusion
from mainline-5.2-rc2
commit 39a9dd81
category: bugfix
bugzilla: 167363
CVE: NA

---------------------------

The reset state doesn't dispatch commands that it needs to wait for
anymore. If a timeout occurs in this state, the reset work is already
disabling the controller, so just reset the request's timer.

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>

Conflicts:
	drivers/nvme/host/pci.c
	[ Cleanup patch 3b7dffb9("nvme-pci: mark expected switch
	  fall-through") not applied. ]

Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 85613d46
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment