]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 2 Sep 2011 12:19:50 +0000 (14:19 +0200)
commit935f6c22b9552504ddc9eafa50a5f6ce407f9f73
tree86c6c7d7c76a311604843e919df141c30c5b1160
parentb5a2b81eddf38983db0d1b46f527e0ff5c3c6e5b
iommu/amd: Don't take domain->lock recursivly

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.

Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu.c