]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit603393467b9e99c003eac0672829130eaabf4f42
tree44687428cd0246ad0419256886870519d2eaea3c
parentf4b31ab49376b483790efb32079c9cb79ecbe030
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