diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2022-05-17 02:41:22 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2022-05-17 22:07:09 +0300 |
commit | 3ca5470878ebe9e31d3292391ae5fd63ab625a0b (patch) | |
tree | 3100dc0db4e4f2959d13dcaba51d4a73f12b6b87 /drivers/irqchip/irq-sifive-plic.c | |
parent | b76c0eed748605afe8cddcc45c574f7f8536551a (diff) | |
download | linux-3ca5470878ebe9e31d3292391ae5fd63ab625a0b.tar.xz |
vfio: Change struct vfio_group::container_users to a non-atomic int
Now that everything is fully locked there is no need for container_users
to remain as an atomic, change it to an unsigned int.
Use 'if (group->container)' as the test to determine if the container is
present or not instead of using container_users.
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Matthew Rosato <mjrosato@linux.ibm.com>
Link: https://lore.kernel.org/r/6-v2-d035a1842d81+1bf-vfio_group_locking_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/irqchip/irq-sifive-plic.c')
0 files changed, 0 insertions, 0 deletions