[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220814064337.32621-3-91tuocao@gmail.com>
Date: Sun, 14 Aug 2022 14:43:30 +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 2/9] scsi: a100u2w: 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/a100u2w.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c
index d02eb5b213d0..391c094758c0 100644
--- a/drivers/scsi/a100u2w.c
+++ b/drivers/scsi/a100u2w.c
@@ -1055,12 +1055,11 @@ static irqreturn_t inia100_intr(int irqno, void *devid)
{
struct Scsi_Host *shost = (struct Scsi_Host *)devid;
struct orc_host *host = (struct orc_host *)shost->hostdata;
- unsigned long flags;
irqreturn_t res;
- spin_lock_irqsave(shost->host_lock, flags);
+ spin_lock(shost->host_lock);
res = orc_interrupt(host);
- spin_unlock_irqrestore(shost->host_lock, flags);
+ spin_unlock(shost->host_lock);
return res;
}
--
2.17.1
Powered by blists - more mailing lists