Skip to content

Commit f1dd0a8

Browse files
committed
iommu/amd: Don't disable IRQs in __detach_device
This function is already called with IRQs disabled already. So no need to disable them again. Signed-off-by: Joerg Roedel <[email protected]>
1 parent 150952f commit f1dd0a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/iommu/amd_iommu.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,18 +2189,17 @@ static int attach_device(struct device *dev,
21892189
static void __detach_device(struct iommu_dev_data *dev_data)
21902190
{
21912191
struct protection_domain *domain;
2192-
unsigned long flags;
21932192

21942193
if (WARN_ON(!dev_data->domain))
21952194
return;
21962195

21972196
domain = dev_data->domain;
21982197

2199-
spin_lock_irqsave(&domain->lock, flags);
2198+
spin_lock(&domain->lock);
22002199

22012200
do_detach(dev_data);
22022201

2203-
spin_unlock_irqrestore(&domain->lock, flags);
2202+
spin_unlock(&domain->lock);
22042203
}
22052204

22062205
/*

0 commit comments

Comments
 (0)