diff options
author | Joerg Roedel <jroedel@suse.de> | 2014-06-20 16:14:22 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-06-20 16:14:22 +0200 |
commit | d73a6d722a675dbba8f6b52c964a7076a24a12c1 (patch) | |
tree | 89a5454af127be81efff8f55821a07d31e6f4ca3 /drivers/ptp | |
parent | 27e249501ca06a3010519c306206cc402b61b5ab (diff) | |
download | linux-d73a6d722a675dbba8f6b52c964a7076a24a12c1.tar.gz linux-d73a6d722a675dbba8f6b52c964a7076a24a12c1.tar.bz2 linux-d73a6d722a675dbba8f6b52c964a7076a24a12c1.zip |
iommu/amd: Fix small race between invalidate_range_end/start
Commit e79df31 introduced mmu_notifer_count to protect
against parallel mmu_notifier_invalidate_range_start/end
calls. The patch left a small race condition when
invalidate_range_end() races with a new
invalidate_range_start() the empty page-table may be
reverted leading to stale TLB entries in the IOMMU and the
device. Use a spin_lock instead of just an atomic variable
to eliminate the race.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions