Skip to content
Commit 14bd9a60 authored by Jinyu Qi's avatar Jinyu Qi Committed by Joerg Roedel
Browse files

iommu/iova: Separate atomic variables to improve performance



In struct iova_domain, there are three atomic variables, the former two
are about TLB flush counters which use atomic_add operation, anoter is
used to flush timer that use cmpxhg operation.
These variables are in the same cache line, so it will cause some
performance loss under the condition that many cores call queue_iova
function, Let's isolate the two type atomic variables to different
cache line to reduce cache line conflict.

Cc: Joerg Roedel <joro@8bytes.org>
Signed-off-by: default avatarJinyu Qi <jinyuqi@huawei.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 8cec63e5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment