From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199610272204.RAA13928@sub2317.jic.com> Date: Sun, 27 Oct 1996 17:04:13 -0500 From: Eric Youngdale Subject: Re: SCSI driver times out on UDB? >Note that this case is unlikely to happen since disk drive vendors >probably do their f/w to try and ensure that a command doesn't hang >out forever. Note that the SCSI specification doesn't say diddly >about whether commands can constipate because new tags keep arriving >that can be satisfied w/o moving the heads. Leonard was finding that the commands were haning long enough to become troublesome. That's why the special stuff for BusLogic ended up in there. >Uh huh- this is an area that really always is needing work. Continously. >Are you working on this now, or is this a future thing? I don't have that much time at the moment. There was some talk about improvements prior to the 2.0 release, but then again we were at code freeze. There are a few other places that needed fixing too, but I think error detection/recovery is probably the most serious, and probably the hardest. The general ideas that we came up with was that each low-level driver should have it's own handling routine for timeouts. Older drivers would be able to use a default driver of some sort, but the general principle is that the top level timeout handler in scsi.c essentially would use a single clock to time out individual devices (instead of individual commands), and the low-level driver could call into the middle layer to perform specific actions. This was the general plan anyways. The way the top level was going to be restructured, all it would really know is that different low-level drivers require timeouts at certain times, so the mid-layer really doesn't know whether it is a command or device that has timed out, and it would be up to the low-level driver to handle it in one consistent way or another. >> Yes, for a 0th order solution, this would seem like a reasonable >>thing to do. >> > >Oooh. *SMACK*. Ow. Okay, so it's not the tablet-from-the-mount sol'n. Oh, no offense intended :-). It is a nice solution in that it would take about an hour to implement and test, so from that perspective it would be a real win. Even if we rewrite error handling, it is still a reasonable thing to do. -Eric -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null