Re: [PATCH 4/6] iommu/amd: Check for busy devices earlier in attach_device()

2019-09-26 Thread Jerry Snitselaar
On Wed Sep 25 19, Joerg Roedel wrote: From: Joerg Roedel Check early in attach_device whether the device is already attached to a domain. This also simplifies the code path so that __attach_device() can be removed. Fixes: 92d420ec028d ("iommu/amd: Relax locking in dma_ops path")

Re: [PATCH 4/6] iommu/amd: Check for busy devices earlier in attach_device()

2019-09-25 Thread Sironi, Filippo via iommu
> On 25. Sep 2019, at 06:22, Joerg Roedel wrote: > > From: Joerg Roedel > > Check early in attach_device whether the device is already attached to a > domain. This also simplifies the code path so that __attach_device() can > be removed. > > Fixes: 92d420ec028d ("iommu/amd: Relax locking

[PATCH 4/6] iommu/amd: Check for busy devices earlier in attach_device()

2019-09-25 Thread Joerg Roedel
From: Joerg Roedel Check early in attach_device whether the device is already attached to a domain. This also simplifies the code path so that __attach_device() can be removed. Fixes: 92d420ec028d ("iommu/amd: Relax locking in dma_ops path") Signed-off-by: Joerg Roedel ---