diff options
author | Lu Baolu <[email protected]> | 2022-07-12 08:08:57 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2022-07-15 10:21:37 +0200 |
commit | 2c3262f9e881ae403b6d92a7e4824531cdb63829 (patch) | |
tree | 01416c41fbd3be7ef0bae96446f568bac133afcf /lib/mpi/mpi-sub-ui.c | |
parent | ffd5869d935303b3e8dedf0d6fbe202ace66c653 (diff) |
iommu/vt-d: Acquiring lock in domain ID allocation helpers
The iommu->lock is used to protect the per-IOMMU domain ID resource.
Moving the lock into the ID alloc/free helpers makes the code more
compact. At the same time, the device_domain_lock is irrelevant to
the domain ID resource, remove its assertion as well.
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions