Re: initio.h header user confusion

James Bottomley
2007-02-21T16:57:06Z

On Wed, 2007-02-21 at 16:12 +0000, Srdjan Todorovic wrote:
> I'm working on a set of patches for the initio scsi driver and I found
> some strangeness with its header file, initio.h. I noticed that
> sun3_scsi.c and sun3_scsi_vme.c include the header, and it uses defines
> such as SCSI_ABORT_SNOOZE (defined in initio.h).

It's a remnant of the old 2.4 error handler and should be excised.

In early 2.4 or perhaps even 2.2 the error handler ran in interrupt
context, so there was no way of waiting for an abort to complete, hence
this return value (it told the eh to wait a while for the abort).

In 2.6 all eh routines run in the context of the host eh thread, so you
can use standard msleep() etc. calls to wait for aborts to timeout or
complete.

James