iommu/amd: Split domain id out of amd_iommu_devtable_lock
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 22 Mar 2018 15:22:35 +0000 (16:22 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 08:38:15 +0000 (10:38 +0200)
commit2bc00180890427dcc092b2f2b0d03c904bcade29
tree5cf7d4442c55b5b062e928a0d85aeea69d9d8ac2
parent779da73273fc4c4c6f41579a95e4fb7880a1720e
iommu/amd: Split domain id out of amd_iommu_devtable_lock

domain_id_alloc() and domain_id_free() is used for id management. Those
two function share a bitmap (amd_iommu_pd_alloc_bitmap) and set/clear
bits based on id allocation. There is no need to share this with
amd_iommu_devtable_lock, it can use its own lock for this operation.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c