-
由 Jinyu Qi 提交于
mainline inclusion from linux-next commit: 14bd9a607f9082e7b5690c27e69072f2aeae0de4 category: feature feature: IOMMU performance bugzilla: NA CVE: NA -------------------------------------------------- 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: NJinyu Qi <jinyuqi@huawei.com> Signed-off-by: NJoerg Roedel <jroedel@suse.de> Signed-off-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
d1473d2a