]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
dma-iommu: use static-key to minimize the impact in the fast-path
authorLianbo Jiang <lijiang@redhat.com>
Tue, 26 Jan 2021 11:53:36 +0000 (19:53 +0800)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:33 +0000 (17:46 -0600)
commitda9a695a0cf939051ec84a0a332f9e946f11e926
treec0832c71d02be4b43f687a37703ba3a3f31a9c22
parent7aec389741a3356701112fffb8e931792ddb1709
dma-iommu: use static-key to minimize the impact in the fast-path

BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit a8e8af35c9f4f75f981a95488c7066d31bac4bef ]

Let's move out the is_kdump_kernel() check from iommu_dma_deferred_attach()
to iommu_dma_init(), and use the static-key in the fast-path to minimize
the impact in the normal case.

Co-developed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20210126115337.20068-2-lijiang@redhat.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/iommu/dma-iommu.c