[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aHaoczqqBIhZ7k1Z@Asurada-Nvidia>
Date: Tue, 15 Jul 2025 12:13:55 -0700
From: Nicolin Chen <nicolinc@...dia.com>
To: Xu Yilun <yilun.xu@...ux.intel.com>
CC: <jgg@...dia.com>, <jgg@...pe.ca>, <kevin.tian@...el.com>,
<will@...nel.org>, <aneesh.kumar@...nel.org>, <iommu@...ts.linux.dev>,
<linux-kernel@...r.kernel.org>, <joro@...tes.org>, <robin.murphy@....com>,
<shuah@...nel.org>, <aik@....com>, <dan.j.williams@...el.com>,
<baolu.lu@...ux.intel.com>, <yilun.xu@...el.com>
Subject: Re: [PATCH v5 8/8] iommufd: Rename some shortterm-related identifiers
On Tue, Jul 15, 2025 at 02:32:45PM +0800, Xu Yilun wrote:
> 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.
>
> Suggested-by: Kevin Tian <kevin.tian@...el.com>
> Suggested-by: Jason Gunthorpe <jgg@...dia.com>
> Signed-off-by: Xu Yilun <yilun.xu@...ux.intel.com>
Reviewed-by: Nicolin Chen <nicolinc@...dia.com>
Powered by blists - more mailing lists