iommu/vt-d: avoid dev iotlb logic for domains with no dev iotlbs
authorOmer Peleg <omer@cs.technion.ac.il>
Wed, 20 Apr 2016 16:03:35 +0000 (19:03 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 20 Apr 2016 19:06:15 +0000 (15:06 -0400)
commit0824c5920b16fe11034f3b5d2d48456d282d83f9
tree0334d21ae66afbf95e56a0d9e08f673ae3dc0ac5
parent769530e4ba4898748a293592f0920275b40cbb93
iommu/vt-d: avoid dev iotlb logic for domains with no dev iotlbs

This patch avoids taking the device_domain_lock in iommu_flush_dev_iotlb()
for domains with no dev iotlb devices.

Signed-off-by: Omer Peleg <omer@cs.technion.ac.il>
[gvdl@google.com: fixed locking issues]
Signed-off-by: Godfrey van der Linden <gvdl@google.com>
[mad@cs.technion.ac.il: rebased and reworded the commit message]
Signed-off-by: Adam Morrison <mad@cs.technion.ac.il>
Reviewed-by: Shaohua Li <shli@fb.com>
Reviewed-by: Ben Serebrin <serebrin@google.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/intel-iommu.c