]> 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)
commita0df010e683ca44a30eb5e0d408849bde81d4c89
tree08dd298261168ab071bbb935cc64b6b3acee6f88
parente955bbe19c26b0f5f9845646e0ecb61ac8e72c5f
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