diff options
author | Lu Baolu <[email protected]> | 2022-07-12 08:09:02 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2022-07-15 10:21:39 +0200 |
commit | 5eaafdf0c05577f9b6cf8c64dee7d39ccdafa63a (patch) | |
tree | 83d2f75b50ee5268f606d4b99be2f57cdd37b79f /lib/mpi/mpi-sub-ui.c | |
parent | 969aaefbaaf2b444852c1980ac0cbbb66463fdae (diff) |
iommu/vt-d: Convert global spinlock into per domain lock
Using a global device_domain_lock spinlock to protect per-domain device
tracking lists is an inefficient way, especially considering this lock
is also needed in the hot paths. This optimizes the locking mechanism
by converting the global lock to per domain lock.
On the other hand, as the device tracking lists are never accessed in
any interrupt context, there is no need to disable interrupts while
spinning. Replace irqsave variant with spinlock calls.
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