commit | 742b4c0d1efe7a7640ad17f1bbf696a1305f6495 | [log] [tgz] |
---|---|---|
author | Luis Chamberlain <mcgrof@kernel.org> | Tue Jun 22 19:28:24 2021 -0700 |
committer | Alex Williamson <alex.williamson@redhat.com> | Thu Jun 24 13:32:31 2021 -0600 |
tree | 11480ebc75a5216f7ad3ecad2793f6f759240c58 | |
parent | e3a9b1212b9d6cb20751196e338f4a5138d539d3 [diff] |
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>