PCI: Export pci_dev_lock()
authorNiklas Schnelle <schnelle@linux.ibm.com>
Wed, 5 May 2021 12:00:06 +0000 (14:00 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 8 Nov 2021 13:17:49 +0000 (14:17 +0100)
commitdfd5bb23ad75bdabde89ac3166705a450bf16acb
tree66180bd375171b92fa2099965447896524e5388e
parentda995d538d3a17610d89fea0f5813cf7921b3c2c
PCI: Export pci_dev_lock()

Commit e3a9b1212b9d ("PCI: Export pci_dev_trylock() and pci_dev_unlock()")
already exported pci_dev_trylock()/pci_dev_unlock() however in some
circumstances such as during error recovery it makes sense to block
waiting to get full access to the device so also export pci_dev_lock().

Link: https://lore.kernel.org/all/20210928181014.GA713179@bhelgaas/
Acked-by: Pierre Morel <pmorel@linux.ibm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/pci/pci.c
include/linux/pci.h