OSDN Git Service

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)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Sep 2019 18:26:46 +0000 (13:26 -0500)
commit7f1c62c443a453deb6eb3515e3c05650ffe0dcf0
treebcdf099bdb3fc851d73c6a5dc3d3fb3188e568bf
parent244c06c3b6d86513066426c9707ee460cd845349
PCI: Add pci_info_ratelimited() to ratelimit PCI separately

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>
drivers/pci/pci.c
include/linux/pci.h