]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
iommu/amd: Don't disable IRQs in __detach_device
authorJoerg Roedel <jroedel@suse.de>
Tue, 20 Oct 2015 15:33:36 +0000 (17:33 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 21 Oct 2015 09:29:27 +0000 (11:29 +0200)
This function is already called with IRQs disabled already.
So no need to disable them again.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c

index e8443e6ff1b14ca8a6bd1e6033d0d473586f166b..07f491c2dc647064f7232dd4df2ad1b1c1db94c7 100644 (file)
@@ -2189,18 +2189,17 @@ static int attach_device(struct device *dev,
 static void __detach_device(struct iommu_dev_data *dev_data)
 {
        struct protection_domain *domain;
-       unsigned long flags;
 
        if (WARN_ON(!dev_data->domain))
                return;
 
        domain = dev_data->domain;
 
-       spin_lock_irqsave(&domain->lock, flags);
+       spin_lock(&domain->lock);
 
        do_detach(dev_data);
 
-       spin_unlock_irqrestore(&domain->lock, flags);
+       spin_unlock(&domain->lock);
 }
 
 /*