Skip to content

Commit c6ff0f8

Browse files
committed
Merge branch 'pci/p2pdma'
- Add Logan Gunthorpe as P2PDMA maintainer (Bjorn Helgaas) - Optimize by using percpu_ref_tryget_live_rcu() inside RCU critical section (Christophe JAILLET) * pci/p2pdma: PCI/P2PDMA: Use percpu_ref_tryget_live_rcu() inside RCU critical section MAINTAINERS: Add Logan Gunthorpe as P2PDMA maintainer
2 parents 446cc1c + 69f457b commit c6ff0f8

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

MAINTAINERS

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14717,6 +14717,19 @@ L: linux-pci@vger.kernel.org
1471714717
S: Supported
1471814718
F: Documentation/PCI/pci-error-recovery.rst
1471914719

14720+
PCI PEER-TO-PEER DMA (P2PDMA)
14721+
M: Bjorn Helgaas <bhelgaas@google.com>
14722+
M: Logan Gunthorpe <logang@deltatee.com>
14723+
L: linux-pci@vger.kernel.org
14724+
S: Supported
14725+
Q: https://patchwork.kernel.org/project/linux-pci/list/
14726+
B: https://bugzilla.kernel.org
14727+
C: irc://irc.oftc.net/linux-pci
14728+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
14729+
F: Documentation/driver-api/pci/p2pdma.rst
14730+
F: drivers/pci/p2pdma.c
14731+
F: include/linux/pci-p2pdma.h
14732+
1472014733
PCI MSI DRIVER FOR ALTERA MSI IP
1472114734
M: Joyce Ooi <joyce.ooi@intel.com>
1472214735
L: linux-pci@vger.kernel.org

drivers/pci/p2pdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ void *pci_alloc_p2pmem(struct pci_dev *pdev, size_t size)
710710
if (!ret)
711711
goto out;
712712

713-
if (unlikely(!percpu_ref_tryget_live(ref))) {
713+
if (unlikely(!percpu_ref_tryget_live_rcu(ref))) {
714714
gen_pool_free(p2pdma->pool, (unsigned long) ret, size);
715715
ret = NULL;
716716
goto out;

0 commit comments

Comments
 (0)