diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2014-10-06 11:26:35 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-10-06 11:43:36 -0400 |
commit | 33fb0d01ce60fe4c0c12c4f0c134c5cdb818ac5a (patch) | |
tree | bcf6430240b39ed54f03709f0fc681831627b7d1 /drivers/ata | |
parent | 18dcf433f3ded61eb140a55e7048ec2fef79e723 (diff) |
AHCI: Do not acquire ata_host::lock from single IRQ handler
There is no need to acquire ata_host::lock spinlock from
hardware context single IRQ interrupt handler since the
handler does not access host data that could be altered
by concurrent processors.
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: linux-ide@vger.kernel.org
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libahci.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 3ce3d23e4f97..5eb61c9e63da 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c | |||
@@ -1875,8 +1875,6 @@ static irqreturn_t ahci_single_irq_intr(int irq, void *dev_instance) | |||
1875 | 1875 | ||
1876 | irq_masked = irq_stat & hpriv->port_map; | 1876 | irq_masked = irq_stat & hpriv->port_map; |
1877 | 1877 | ||
1878 | spin_lock(&host->lock); | ||
1879 | |||
1880 | for (i = 0; i < host->n_ports; i++) { | 1878 | for (i = 0; i < host->n_ports; i++) { |
1881 | struct ata_port *ap; | 1879 | struct ata_port *ap; |
1882 | 1880 | ||
@@ -1908,8 +1906,6 @@ static irqreturn_t ahci_single_irq_intr(int irq, void *dev_instance) | |||
1908 | */ | 1906 | */ |
1909 | writel(irq_stat, mmio + HOST_IRQ_STAT); | 1907 | writel(irq_stat, mmio + HOST_IRQ_STAT); |
1910 | 1908 | ||
1911 | spin_unlock(&host->lock); | ||
1912 | |||
1913 | VPRINTK("EXIT\n"); | 1909 | VPRINTK("EXIT\n"); |
1914 | 1910 | ||
1915 | return handled ? IRQ_WAKE_THREAD : IRQ_NONE; | 1911 | return handled ? IRQ_WAKE_THREAD : IRQ_NONE; |