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)
commit27c1ce8bbed7e7f0e4a87cf4a93f09be26d62ada
tree08dd298261168ab071bbb935cc64b6b3acee6f88
parentfcd4d369034a819aa393f65c3a8f58db9ab5ed2a
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