提交 7766a3fb 编写于 作者: D David Woodhouse

intel-iommu: Use cmpxchg64_local() for setting PTEs

Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 85b98276
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册