Re: [PATCH] iommu/dma: Fix race condition during iova_domain initialization

From: Joerg Roedel
Date: Wed Jun 22 2022 - 09:42:29 EST


On Wed, Jun 22, 2022 at 02:27:57PM +0100, Robin Murphy wrote:
> Apologies, I did spot this before, I've just been tied up with other things
> and dropping everything non-critical on the floor, so didn't get round to
> replying before it slipped my mind again.
>
> In summary, I hate it, but mostly because the whole situation of calling
> iommu_probe_device off the back of driver probe is fundamentally broken. I'm
> still a few steps away from fixing that properly, at which point I can just
> as well rip all these little bodges out again. If it really does need
> mitigating in the meantime (i.e. this is real-world async probe, not just
> some contrived testcase), then I can't easily think of any cleaner hack, so,
>
> Acked-by: Robin Murphy <robin.murphy@xxxxxxx>

Alright, applied this now.