aboutsummaryrefslogtreecommitdiff
path: root/samples/vfio-mdev/mtty.c
diff options
context:
space:
mode:
authorGravatar Luis Chamberlain <mcgrof@kernel.org> 2021-06-22 19:28:24 -0700
committerGravatar Alex Williamson <alex.williamson@redhat.com> 2021-06-24 13:32:31 -0600
commit742b4c0d1efe7a7640ad17f1bbf696a1305f6495 (patch)
tree11480ebc75a5216f7ad3ecad2793f6f759240c58 /samples/vfio-mdev/mtty.c
parentPCI: Export pci_dev_trylock() and pci_dev_unlock() (diff)
downloadlinux-742b4c0d1efe7a7640ad17f1bbf696a1305f6495.tar.gz
linux-742b4c0d1efe7a7640ad17f1bbf696a1305f6495.tar.bz2
linux-742b4c0d1efe7a7640ad17f1bbf696a1305f6495.zip
vfio: use the new pci_dev_trylock() helper to simplify try lock
Use the new pci_dev_trylock() helper to simplify our locking. Signed-off-by: Luis Chamberlain <mcgrof@kernel.org> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20210623022824.308041-3-mcgrof@kernel.org Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'samples/vfio-mdev/mtty.c')
0 files changed, 0 insertions, 0 deletions