]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/AER: Use kfifo for tracking events instead of reimplementing it
authorKeith Busch <keith.busch@intel.com>
Tue, 18 Sep 2018 23:58:43 +0000 (17:58 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 8 Oct 2018 17:18:13 +0000 (12:18 -0500)
commitd7b0ab7c29fce3d2dd81d49362030bf071809081
tree08dd298261168ab071bbb935cc64b6b3acee6f88
parenta5330ef656fe3a2305df3d12e39323af61897f49
PCI/AER: Use kfifo for tracking events instead of reimplementing it

The kernel provides a generic FIFO implementation, so no need to reinvent
that capability in a driver.  Replace the AER-specific implementation with
the kernel-provided kfifo.  Since the interrupt handler producer and work
queue consumer run single threaded, there is no need for additional
locking, so remove that lock, too.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer.c