From: Joerg Roedel Date: Wed, 10 Dec 2008 19:05:52 +0000 (+0100) Subject: AMD IOMMU: don't remove protection domain from iommu_pd_list X-Git-Tag: v2.6.29-rc1~522^2~1^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e919012e33c481991e46aa4cb13d807cd47b798;p=profile%2Fivi%2Fkernel-x86-ivi.git AMD IOMMU: don't remove protection domain from iommu_pd_list Impact: save unneeded logic to add and remove domains to the list The removal of a protection domain from the iommu_pd_list is not necessary. Another benefit is that we save complexity because we don't have to readd it later when the device no longer uses the domain. Signed-off-by: Joerg Roedel --- diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index fee16fb..b7b3067 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c @@ -844,7 +844,6 @@ static struct dma_ops_domain *find_protection_domain(u16 devid) list_for_each_entry(entry, &iommu_pd_list, list) { if (entry->target_dev == devid) { ret = entry; - list_del(&ret->list); break; } }