mirror-linux/drivers/iommu/iommufd
Xu Yilun ab6bc44159 iommufd: Rename some shortterm-related identifiers
Rename the shortterm-related identifiers to wait-related.

The usage of shortterm_users refcount is now beyond its name.  It is
also used for references which live longer than an ioctl execution.
E.g. vdev holds idev's shortterm_users refcount on vdev allocation,
releases it during idev's pre_destroy(). Rename the refcount as
wait_cnt, since it is always used to sync the referencing & the
destruction of the object by waiting for it to go to zero.

List all changed identifiers:

  iommufd_object::shortterm_users -> iommufd_object::wait_cnt
  REMOVE_WAIT_SHORTTERM -> REMOVE_WAIT
  iommufd_object_dec_wait_shortterm() -> iommufd_object_dec_wait()
  zerod_shortterm -> zerod_wait_cnt

No functional change intended.

Link: https://patch.msgid.link/r/20250716070349.1807226-9-yilun.xu@linux.intel.com
Suggested-by: Kevin Tian <kevin.tian@intel.com>
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2025-07-18 17:33:08 -03:00
..
Kconfig iommufd: Move iommufd_sw_msi and related functions to driver.c 2025-03-25 10:18:19 -03:00
Makefile iommufd: Rename fault.c to eventq.c 2025-03-17 14:51:19 -03:00
device.c iommufd: Rename some shortterm-related identifiers 2025-07-18 17:33:08 -03:00
double_span.h
driver.c iommufd/vdevice: Remove struct device reference from struct vdevice 2025-07-18 17:33:08 -03:00
eventq.c iommufd: Apply the new iommufd_object_alloc_ucmd helper 2025-06-19 15:43:30 -03:00
hw_pagetable.c iommufd: Return EOPNOTSUPP for failures due to driver bugs 2025-06-19 15:43:28 -03:00
io_pagetable.c iommufd: Prevent ALIGN() overflow 2025-07-17 11:46:55 -03:00
io_pagetable.h iommufd/access: Bypass access->ops->unmap for internal use 2025-07-11 11:09:22 -03:00
ioas.c iommufd: Add IOMMU_IOAS_CHANGE_PROCESS 2024-11-14 12:57:13 -04:00
iommufd_private.h iommufd: Rename some shortterm-related identifiers 2025-07-18 17:33:08 -03:00
iommufd_test.h iommufd/selftest: Add coverage for the new mmap interface 2025-07-11 14:34:35 -03:00
iova_bitmap.c iommufd: Apply obvious cosmetic fixes 2025-06-19 15:43:27 -03:00
main.c iommufd: Rename some shortterm-related identifiers 2025-07-18 17:33:08 -03:00
pages.c iommufd/access: Bypass access->ops->unmap for internal use 2025-07-11 11:09:22 -03:00
selftest.c iommu: Allow an input type in hw_info op 2025-07-11 14:34:35 -03:00
vfio_compat.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
viommu.c iommufd: Rename some shortterm-related identifiers 2025-07-18 17:33:08 -03:00