-
Hiroshi DOYU authored
alloc_pdir() is called from smmu_iommu_domain_init() with spin_lock held. memory allocations in alloc_pdir() had to be atomic. Instead of converting into atomic allocation, this patch once releases a lock, does the allocation, holds the lock again and then sees if it's raced or not in order to avoid introducing mutex and preallocation. Signed-off-by:
Hiroshi DOYU <hdoyu@nvidia.com> Reported-by:
Chris Wright <chrisw@sous-sol.org> Cc: Chris Wright <chrisw@sous-sol.org> Acked-by:
Stephen Warren <swarren@wwwdotorg.org> Signed-off-by:
Joerg Roedel <joerg.roedel@amd.com>
9e971a03