PCI: Add pci_info_ratelimited() to ratelimit PCI separately
authorKrzysztof Wilczynski <kw@linux.com>
Sun, 25 Aug 2019 22:46:16 +0000 (00:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 16:59:32 +0000 (18:59 +0200)
commit1c8c46bdfcdeb58b30b53584c50cf33b33ea8df3
treef260965721d50ed789d7a3214e370f8868cca870
parent400a250cc06f40548042561ce166505aff2fce11
PCI: Add pci_info_ratelimited() to ratelimit PCI separately

[ Upstream commit 7f1c62c443a453deb6eb3515e3c05650ffe0dcf0 ]

Do not use printk_ratelimit() in drivers/pci/pci.c as it shares the rate
limiting state with all other callers to the printk_ratelimit().

Add pci_info_ratelimited() (similar to pci_notice_ratelimited() added in
the commit a88a7b3eb076 ("vfio: Use dev_printk() when possible")) and use
it instead of printk_ratelimit() + pci_info().

Link: https://lore.kernel.org/r/20190825224616.8021-1-kw@linux.com
Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/pci.c
include/linux/pci.h