AMD IOMMU: protect completion wait loop with iommu lock
authorJoerg Roedel <joerg.roedel@amd.com>
Wed, 17 Sep 2008 12:19:15 +0000 (14:19 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 18 Sep 2008 07:25:44 +0000 (09:25 +0200)
commit7e4f88da7bf1887563f70bd5edbbd0479e31dc12
treeeacefdd0980b384a89463cca211c042c7faa9b1d
parentee2fa7435b6dddf1ca119f298ad0100cf50c0397
AMD IOMMU: protect completion wait loop with iommu lock

The unlocked polling of the ComWaitInt bit in the IOMMU completion wait
path is racy. Protect it with the iommu lock.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu.c