diff options
author | Christophe JAILLET <[email protected]> | 2021-11-03 22:16:53 +0100 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-12-15 16:13:13 -0600 |
commit | 69f457b18fa2b9a793ce61e8d1cf295983aca3a9 (patch) | |
tree | 0761084883fde9fcdf6879125ab3f88313b6b2a1 /net/lapb/lapb_timer.c | |
parent | 133bc542db36e304f44fb520db9a3b8358b987f5 (diff) |
PCI/P2PDMA: Use percpu_ref_tryget_live_rcu() inside RCU critical section
Since pci_alloc_p2pmem() has already called rcu_read_lock(), we're in an
RCU read-side critical section and don't need to take the lock again. Use
percpu_ref_tryget_live_rcu() instead of percpu_ref_tryget_live() to save a
few cycles.
[bhelgaas: commit log]
Link: https://lore.kernel.org/r/ab80164f4d5b32f9e6240aa4863c3a147ff9c89f.1635974126.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Krzysztof WilczyĆski <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions