summaryrefslogtreecommitdiffstats
path: root/include/linux/iova.h
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2021-03-25 20:29:58 +0800
committerJoerg Roedel <jroedel@suse.de>2021-04-07 10:27:27 +0200
commitf598a497bc7dfbec60270bca8b8408db3d23ac07 (patch)
tree8a0616a7e7f19e67484281235df488c6e199998d /include/linux/iova.h
parent371d7955e3102fe38daf06de4ed9bfd29864354b (diff)
downloadlinux-stable-f598a497bc7dfbec60270bca8b8408db3d23ac07.tar.gz
linux-stable-f598a497bc7dfbec60270bca8b8408db3d23ac07.tar.bz2
linux-stable-f598a497bc7dfbec60270bca8b8408db3d23ac07.zip
iova: Add CPU hotplug handler to flush rcaches
Like the Intel IOMMU driver already does, flush the per-IOVA domain CPU rcache when a CPU goes offline - there's no point in keeping it. Reviewed-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: John Garry <john.garry@huawei.com> Link: https://lore.kernel.org/r/1616675401-151997-2-git-send-email-john.garry@huawei.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/iova.h')
-rw-r--r--include/linux/iova.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iova.h b/include/linux/iova.h
index c834c01c0a5b..4be6c0ab4997 100644
--- a/include/linux/iova.h
+++ b/include/linux/iova.h
@@ -95,6 +95,7 @@ struct iova_domain {
flush-queues */
atomic_t fq_timer_on; /* 1 when timer is active, 0
when not */
+ struct hlist_node cpuhp_dead;
};
static inline unsigned long iova_size(struct iova *iova)