intel-iommu: Use cmpxchg64_local() for setting PTEs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Friday, July 3, 2009 - 5:59 pm

Gitweb:     http://git.kernel.org/linus/7766a3fb905f0b078b05f5d6a6be8df4c64b9f51
Commit:     7766a3fb905f0b078b05f5d6a6be8df4c64b9f51
Parent:     85b98276f2ffa66b25ae6328b00bfadfd74b74e7
Author:     David Woodhouse <David.Woodhouse@intel.com>
AuthorDate: Wed Jul 1 20:27:03 2009 +0100
Committer:  David Woodhouse <David.Woodhouse@intel.com>
CommitDate: Wed Jul 1 20:27:03 2009 +0100

    intel-iommu: Use cmpxchg64_local() for setting PTEs
    
    Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
---
 drivers/pci/intel-iommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index 2bbc3fc..2c1b2ba 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -1682,7 +1682,7 @@ static int __domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn,
 		/* We don't need lock here, nobody else
 		 * touches the iova range
 		 */
-		tmp = cmpxchg64(&pte->val, 0ULL, pteval);
+		tmp = cmpxchg64_local(&pte->val, 0ULL, pteval);
 		if (tmp) {
 			static int dumps = 5;
 			printk(KERN_CRIT "ERROR: DMA PTE for vPFN 0x%lx already set (to %llx not %llx)\n",
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
intel-iommu: Use cmpxchg64_local() for setting PTEs, Linux Kernel Mailing List..., (Fri Jul 3, 5:59 pm)