RE: spin locks and timers in scsi hba driver

From: MEHTA,HIREN (A-SanJose,ex1) (
Date: Mon Oct 15 2001 - 17:44:44 EST

Well, I thought spin_unlock_irq() is supposed to enable all maskable
by setting IF flag in the EFLAGS register which gets cleared by
I understand that spin_unlock_irq does not restore all the flags. But it
atleast sets the IF flag which enables the interrupt. I believe that this
is atleast true in case of intel x86 arch. We have not made our sources
open-source yet. So I cannot give out the sources. Sorry.

Thanks and regards,

-----Original Message-----
From: []
Sent: Monday, October 15, 2001 3:11 PM
Subject: Re: spin locks and timers in scsi hba driver

In article <>
you wrote:
> Hi List,

> I want to make sure that my hba-driver timers do run
> when the uppar scsi-layer calls any of the error handler entry points
> and while I am still doing the error handling. As I know, scsi-layer
> calls spin_lock_irqsave(&io_request_lock, flags) before calling the
> error handlers and they call spin_unlock_irqrestore(&io_request_lock,
> after returning from the error handlers. So, inside the error handlers,
> I call spin_unlock_irq(&io_request_lock); wait for the timers to run,
> and the again call spin_lock_irq(&io_request_lock).

well interrupts are still disabled...
Could you give an URL to the source of your driver so that I and others can
see what you really are trying to do ?

   Arjan van de Ven
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Oct 15 2001 - 21:00:59 EST