nvme/pci: Poll CQ on timeout
authorKeith Busch <keith.busch@intel.com>
Fri, 24 Feb 2017 22:59:28 +0000 (17:59 -0500)
committerChristoph Hellwig <hch@lst.de>
Fri, 21 Apr 2017 14:41:55 +0000 (16:41 +0200)
commit7776db1ccc123d5944a8c170c9c45f7e91d49643
tree9ab89673ad47e3db66dabc60672b34ebfcb7ac52
parent4363135761e085fbb5ddb16dfbd4322a4d2e5037
nvme/pci: Poll CQ on timeout

If an IO timeout occurs, it's helpful to know if the controller did not
post a completion or the driver missed an interrupt. While we never expect
the latter, this patch will make it possible to tell the difference so
we don't have to guess.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
drivers/nvme/host/pci.c