Re: [PATCH v3 2/5] iommu/s390: Get rid of s390_domain_device

From: Jason Gunthorpe
Date: Thu Sep 29 2022 - 12:22:22 EST


On Thu, Sep 29, 2022 at 05:32:59PM +0200, Niklas Schnelle wrote:
> The struct s390_domain_device serves the sole purpose as list entry for
> the devices list of a struct s390_domain. As it contains no additional
> information besides a list_head and a pointer to the struct zpci_dev we
> can simplify things and just thread the device list through struct
> zpci_dev directly. This removes the need to allocate during domain
> attach and gets rid of one level of indirection during mapping
> operations.
>
> Signed-off-by: Niklas Schnelle <schnelle@xxxxxxxxxxxxx>
> ---
> v2->v3:
> - Remove search in devices list when we have the pointer to the
> list item (Jason)

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason