Skip to content

Commit 9594ca6

Browse files
sebottMartin Schwidefsky
authored andcommitted
s390/pci: remove bit_lock usage in interrupt handler
The interrupt handler uses bit_spin_lock around a call to retrieve per irq data (the irq number). However this per irq data is only set during irq setup time and never changed until the irq is freed. Thus it's safe to remove the lock usage. Signed-off-by: Sebastian Ott <sebott@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 87ccdcf commit 9594ca6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/s390/pci/pci.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,7 @@ static void zpci_irq_handler(struct airq_struct *airq)
382382
if (ai == -1UL)
383383
break;
384384
inc_irq_stat(IRQIO_MSI);
385-
airq_iv_lock(aibv, ai);
386385
generic_handle_irq(airq_iv_get_data(aibv, ai));
387-
airq_iv_unlock(aibv, ai);
388386
}
389387
}
390388
}
@@ -410,7 +408,7 @@ int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
410408
zdev->aisb = aisb;
411409

412410
/* Create adapter interrupt vector */
413-
zdev->aibv = airq_iv_create(msi_vecs, AIRQ_IV_DATA | AIRQ_IV_BITLOCK);
411+
zdev->aibv = airq_iv_create(msi_vecs, AIRQ_IV_DATA);
414412
if (!zdev->aibv)
415413
return -ENOMEM;
416414

0 commit comments

Comments
 (0)