iommu/amd: Don't take domain->lock recursivly
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 2 Sep 2011 12:19:50 +0000 (14:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:20 +0000 (11:40 -0700)
commit5c755fc21c8e84aff1230e27646fe4277a19451d
tree1e2961b51886bb7d58a4533eb4d5bbfa28e8d84d
parentbfa826f82f1383593e18ad180eb816221627a917
iommu/amd: Don't take domain->lock recursivly

commit e33acde91140f1809952d1c135c36feb66a51887 upstream.

The domain_flush_devices() function takes the domain->lock.
But this function is only called from update_domain() which
itself is already called unter the domain->lock. This causes
a deadlock situation when the dma-address-space of a domain
grows larger than 1GB.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/amd_iommu.c