summaryrefslogtreecommitdiff
path: root/lib/audit.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2019-08-28 16:13:38 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 14:09:53 +0300
commitc55659cd145904b4386c0600e9131b5350bac9f3 (patch)
tree7025c96044193b84c70078237801352889dbefcc /lib/audit.c
parent223b0481ed4b95485e0b749c1a6e5c50f1ff1209 (diff)
downloadlinux-c55659cd145904b4386c0600e9131b5350bac9f3.tar.xz
iommu/iova: Avoid false sharing on fq_timer_on
[ Upstream commit 0d87308cca2c124f9bce02383f1d9632c9be89c4 ] In commit 14bd9a607f90 ("iommu/iova: Separate atomic variables to improve performance") Jinyu Qi identified that the atomic_cmpxchg() in queue_iova() was causing a performance loss and moved critical fields so that the false sharing would not impact them. However, avoiding the false sharing in the first place seems easy. We should attempt the atomic_cmpxchg() no more than 100 times per second. Adding an atomic_read() will keep the cache line mostly shared. This false sharing came with commit 9a005a800ae8 ("iommu/iova: Add flush timer"). Signed-off-by: Eric Dumazet <edumazet@google.com> Fixes: 9a005a800ae8 ('iommu/iova: Add flush timer') Cc: Jinyu Qi <jinyuqi@huawei.com> Cc: Joerg Roedel <jroedel@suse.de> Acked-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/audit.c')
0 files changed, 0 insertions, 0 deletions