Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme-pci: fix freeze accounting for error handling
A reset on a live device experiencing a link error still needs to have the queue freeze state started for the subsequent reinitialization. Skip only the register read if the device is not present instead of bypassing the freeze checks. Fixes: b98235d ("nvme-pci: harden drive presence detect in nvme_dev_disable()") Reported-by: Niklas Schnelle <[email protected]> Signed-off-by: Keith Busch <[email protected]> Tested-by: Niklas Schnelle <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
- Loading branch information