OSDN Git Service

nvme-pci: Don't disable on timeout in reset state
authorKeith Busch <keith.busch@intel.com>
Tue, 14 May 2019 20:10:41 +0000 (14:10 -0600)
committerKeith Busch <keith.busch@intel.com>
Fri, 17 May 2019 17:03:00 +0000 (11:03 -0600)
commit39a9dd81f864aa20be896bb34b4bbc2501a2453d
treebedcac39016bd78bb52bc03fe60e6e2f76e7a75f
parente43269e6e5c49d7fec599e6bba71963935b0e4ba
nvme-pci: Don't disable on timeout in reset state

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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/pci.c