lkml.org 
[lkml]   [2001]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectspin locks and timers in scsi hba driver
Date
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, flags)
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).

But this does not seem to be working. Even after I call
spin_unlock_irq(&io_request_lock), I don't see my timer routines getting
called.
Can somebody advise me on how to achive this ? I cannot use
spin_unlock_irqrestore() as I do not have the saved 'flags' value.

TIA.
-hiren
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.036 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site