[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220814064337.32621-6-91tuocao@gmail.com>
Date: Sun, 14 Aug 2022 14:43:33 +0800
From: Tuo Cao <91tuocao@...il.com>
To: James.Bottomley@...senPartnership.com, martin.petersen@...cle.com,
khalid@...ehiking.org, willy@...radead.org, hare@...e.com
Cc: anil.gurumurthy@...gic.com, sudarsana.kalluru@...gic.com,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
91tuocao@...il.com
Subject: [PATCH 5/9] scsi: BusLogic: move spin_lock_irqsave to spin_lock in interrupt handler
it is unnecessary to call spin_lock_irqsave in a interrupt handler.
Signed-off-by: Tuo Cao <91tuocao@...il.com>
---
drivers/scsi/BusLogic.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c
index f2abffce2659..e2eb020966cd 100644
--- a/drivers/scsi/BusLogic.c
+++ b/drivers/scsi/BusLogic.c
@@ -2739,11 +2739,10 @@ static void blogic_process_ccbs(struct blogic_adapter *adapter)
static irqreturn_t blogic_inthandler(int irq_ch, void *devid)
{
struct blogic_adapter *adapter = (struct blogic_adapter *) devid;
- unsigned long processor_flag;
/*
Acquire exclusive access to Host Adapter.
*/
- spin_lock_irqsave(adapter->scsi_host->host_lock, processor_flag);
+ spin_lock(adapter->scsi_host->host_lock);
/*
Handle Interrupts appropriately for each Host Adapter type.
*/
@@ -2811,7 +2810,7 @@ static irqreturn_t blogic_inthandler(int irq_ch, void *devid)
/*
Release exclusive access to Host Adapter.
*/
- spin_unlock_irqrestore(adapter->scsi_host->host_lock, processor_flag);
+ spin_unlock(adapter->scsi_host->host_lock);
return IRQ_HANDLED;
}
--
2.17.1
Powered by blists - more mailing lists