Re: [PATCH] iommu/amd: Fix amd_iommu_free_device()

From: Joerg Roedel
Date: Wed Feb 04 2015 - 09:36:14 EST


On Tue, Feb 03, 2015 at 01:25:51PM +0100, Peter Zijlstra wrote:
> Subject: iommu/amd: Fix amd_iommu_free_device()
>
> put_device_state_wait() doesn't loop on the condition and a spurious
> wakeup will have it free the device state even though there might still
> be references out to it.
>
> Fix this by using 'normal' wait primitives.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> ---
> drivers/iommu/amd_iommu_v2.c | 20 +++++++-------------
> 1 file changed, 7 insertions(+), 13 deletions(-)

Applied this, thanks Peter.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/