Re: [PATCH v2] iommu/dma: Relax locking in iommu_dma_prepare_msi()

2019-12-17 Thread Joerg Roedel
On Mon, Dec 09, 2019 at 07:47:25PM +, Robin Murphy wrote: > Since commit ece6e6f0218b ("iommu/dma-iommu: Split iommu_dma_map_msi_msg() > in two parts"), iommu_dma_prepare_msi() should no longer have to worry > about preempting itself, nor being called in atomic context at all. Thus > we can dow

[PATCH v2] iommu/dma: Relax locking in iommu_dma_prepare_msi()

2019-12-09 Thread Robin Murphy
Since commit ece6e6f0218b ("iommu/dma-iommu: Split iommu_dma_map_msi_msg() in two parts"), iommu_dma_prepare_msi() should no longer have to worry about preempting itself, nor being called in atomic context at all. Thus we can downgrade the IRQ-safe locking to a simple mutex to avoid angering the ne