diff options
author | Lu Baolu <[email protected]> | 2022-07-12 08:08:56 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2022-07-15 10:21:36 +0200 |
commit | ffd5869d935303b3e8dedf0d6fbe202ace66c653 (patch) | |
tree | aa19731aecd0391f3425fa113097aef0c6d4113c /lib/mpi/mpi-sub-ui.c | |
parent | 2e1c8dafb8c2c459baa5aef5b338c15edd9b9b5b (diff) |
iommu/vt-d: Replace spin_lock_irqsave() with spin_lock()
The iommu->lock is used to protect changes in root/context/pasid tables
and domain ID allocation. There's no use case to change these resources
in any interrupt context. Therefore, it is unnecessary to disable the
interrupts when the spinlock is held. The same thing happens on the
device_domain_lock side, which protects the device domain attachment
information. This replaces spin_lock/unlock_irqsave/irqrestore() calls
with the normal spin_lock/unlock().
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