>Note that the interrupt service routine should also be
>grabbing io_request_lock when the interrupt arrives, and releasing it before
>the interrupt service routine returns.   Thus when the error handler thread
>wakes up from the sleep (as a result of either a timer firing or an
>interrupt), the error handler function would need to grab io_request_lock
>again.

Please don't encourage this.  The only requirement is that the io_request_lock
be held during calls back into the mid-layer.  Holding the io_request_lock
during the whole interrupt routine needlessly prevents multiple controller
instances (not necessarily of the type serviced by your driver) from running
at the same time.

--
Justin
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to