diff options
author | Lu Baolu <[email protected]> | 2022-07-12 08:08:52 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2022-07-15 10:21:33 +0200 |
commit | 983ebe57b3af05288aa41ee721f01430424bbf31 (patch) | |
tree | 966c036603b873557ea6eb07dccd9537272c5842 /lib/mpi/mpi-sub-ui.c | |
parent | 9f18abab6063ded860097dbbd7c8b3cef198e4dd (diff) |
iommu/vt-d: debugfs: Remove device_domain_lock usage
The domain_translation_struct debugfs node is used to dump the DMAR page
tables for the PCI devices. It potentially races with setting domains to
devices. The existing code uses the global spinlock device_domain_lock to
avoid the races.
This removes the use of device_domain_lock outside of iommu.c by replacing
it with the group mutex lock. Using the group mutex lock is cleaner and
more compatible to following cleanups.
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