Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c9746b3 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by James Bottomley
Browse files

[SCSI] sym53c8xx: Don't disable interrupts in the interrupt handler



Interrupts can't be re-entered, so it's sufficient to call spin_lock, not
spin_lock_irqsave().

Signed-off-by: default avatarMatthew Wilcox <willy@linux.intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 71c222dc
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -550,14 +550,13 @@ static int sym53c8xx_queue_command(struct scsi_cmnd *cmd,
 */
static irqreturn_t sym53c8xx_intr(int irq, void *dev_id)
{
	unsigned long flags;
	struct sym_hcb *np = (struct sym_hcb *)dev_id;
	struct sym_hcb *np = dev_id;

	if (DEBUG_FLAGS & DEBUG_TINY) printf_debug ("[");

	spin_lock_irqsave(np->s.host->host_lock, flags);
	spin_lock(np->s.host->host_lock);
	sym_interrupt(np);
	spin_unlock_irqrestore(np->s.host->host_lock, flags);
	spin_unlock(np->s.host->host_lock);

	if (DEBUG_FLAGS & DEBUG_TINY) printf_debug ("]\n");