[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aFpKEO7/+Xf6Wu+d@yilunxu-OptiPlex-7050>
Date: Tue, 24 Jun 2025 14:47:44 +0800
From: Xu Yilun <yilun.xu@...ux.intel.com>
To: jgg@...dia.com, jgg@...pe.ca, kevin.tian@...el.com, will@...nel.org,
aneesh.kumar@...nel.org
Cc: iommu@...ts.linux.dev, linux-kernel@...r.kernel.org, joro@...tes.org,
robin.murphy@....com, shuah@...nel.org, nicolinc@...dia.com,
aik@....com, dan.j.williams@...el.com, baolu.lu@...ux.intel.com,
yilun.xu@...el.com
Subject: Re: [PATCH v2 3/4] iommufd: Destroy vdevice on idevice destroy
> +void iommufd_vdevice_destroy(struct iommufd_object *obj)
> +{
> + struct iommufd_vdevice *vdev =
> + container_of(obj, struct iommufd_vdevice, obj);
> +
> + mutex_lock(&vdev->idev->igroup->lock);
> + iommufd_vdevice_abort(obj);
> + mutex_unlock(&vdev->idev->igroup->lock);
> + wake_up_interruptible_all(&vdev->ictx->destroy_wait);
Should change to
wake_up_interruptible_all(&vdev->viommu->ictx->destroy_wait);
since vdev->ictx will be deleted.
Thanks,
Yilun
Powered by blists - more mailing lists