[8350] in linux-scsi channel archive
Re: spoofing SCSI retries
daemon@ATHENA.MIT.EDU (Kurt Garloff)
Fri Mar 10 04:55:40 2000
Date: Fri, 10 Mar 2000 10:50:34 +0100
From: Kurt Garloff <garloff@suse.de>
To: "Ralston, Steve" <steve.ralston@lsil.com>
Cc: "Linux SCSI list" <linux-scsi@vger.rutgers.edu>
Message-ID: <20000310105034.K15075@mobil.tue.nl>
Mail-Followup-To: "Ralston, Steve" <steve.ralston@lsil.com>,
"Linux SCSI list" <linux-scsi@vger.rutgers.edu>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-md5;
protocol="application/pgp-signature"; boundary="AAnJd2yLvu+tR7U7"
In-Reply-To: <B2B3C90E45AED111B7B40001FA7E520A03833FD6@exw-kansas.ks.lsil.com>; from steve.ralston@lsil.com on Fri, Mar 10, 2000 at 02:35:15AM -0600
--AAnJd2yLvu+tR7U7
Content-Type: text/plain; charset=us-ascii
On Fri, Mar 10, 2000 at 02:35:15AM -0600, Ralston, Steve wrote:
> I've tried various flavors over the past few weeks with
> strange to interesting results.
> 1) sc->result = DID_BUS_BUSY << 16;
> // YIKES! This seems to kill linux interrupt handler!!!
> 2) sc->result = 0x08; // Try SCSI BUSY!
> // Sort of works, but end up with corrupted file system
> 3) sc->result = 0x28; // Try SCSI QUEUE_FULL!
> // Best results so far...
>
> Just curious if anyone out there recommends these
> or other methods.
Your host adapter driver needs to be able to give back commands to the
mid-layer anyway, as the needs also exists on aborting a command (being done
by an ABORT or an ABORT_TAG message) or when a device or a bus reset occurs.
Just giving the commands back with DID_ABORT<<16 or DID_RESET<<16 works and
is actually what my drivers do.
For new EH, you also have the possibility to return 1 from queuecommand().
There's one thing you should be aware of: If there are writes and reads to
the same blocks, the order of the commands is important. Give back the
oldest command first, as it will be requeued first.
Of course, you need to make sure, you don't loose a command ...
Regards,
--
Kurt Garloff <garloff@suse.de> Eindhoven, NL
GPG key: See mail header, key servers Linux kernel development
SuSE GmbH, Nuernberg, FRG SCSI, Security
--AAnJd2yLvu+tR7U7
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1c- (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE4yMVqxmLh6hyYd04RAdwuAJ98fPowJutLez9FOdTTUpC2p4wQkQCfapC7
6ZzYrjCHhXfZwMqxr1MMT5A=
=9Gei
-----END PGP SIGNATURE-----
--AAnJd2yLvu+tR7U7--
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu