nvme-pci: Rate limit the nvme timeout warnings
authorKeith Busch <keith.busch@intel.com>
Thu, 24 May 2018 20:34:55 +0000 (14:34 -0600)
committerChristoph Hellwig <hch@lst.de>
Wed, 30 May 2018 06:04:25 +0000 (08:04 +0200)
commitb9cac43c2c4aab221ee0bac72bd6b9f8bf00a223
tree44687428cd0246ad0419256886870519d2eaea3c
parentab4f47a9f4a12603a1806230d44ead2e54158f85
nvme-pci: Rate limit the nvme timeout warnings

The block layer's timeout handling currently prevents drivers from
completing commands outside the timeout callback once blk-mq decides
they've expired. If a device breaks, this could potentially create many
thousands of timed out commands. There's nothing of value to be gleaned
from observing each of those messages, so this patch adds a rate limit
on them.

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