From: Joerg Roedel Date: Tue, 17 Jul 2012 09:47:14 +0000 (+0200) Subject: iommu/tegra: Don't call alloc_pdir with as->lock X-Git-Tag: v3.6-rc1~111^2^5~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9a4f063a88297e361fd6676986cf3e39b22de72;p=pandora-kernel.git iommu/tegra: Don't call alloc_pdir with as->lock Instead of taking as->lock before calling alloc_pdir() and releasing it in that function to allocate memory, just take the lock only in the alloc_pdir function and run the loop without any lock held. This simplifies the complicated lock->unlock->alloc->lock->unlock sequence into alloc->lock->unlock. Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed