From: Hannes Reinecke <hare@suse.de>
To: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Overlapped command error handling
Date: Thu, 02 Feb 2006 14:00:34 +0100 [thread overview]
Message-ID: <43E20272.5000506@suse.de> (raw)
Hi all,
and here is something for the SCSI Gods out there:
my IOMEGA Zip drive is going into error handling upon access.
Surprisingly enough, the device recovered so it's not really critical.
However, I wonder whether the error recovery is really a hardware error
on the driver itself or whether it's again this blasted aic79xx driver.
What happens is the following:
sd 4:0:6:0: send 0xffff810076858dc0 sd 4:0:6:0:
command: Read (10): 28 00 00 00 00 00 00 00 08 00
-> Read some bytes, ok.
sd 4:0:6:0: send 0xffff810076858488 sd 4:0:6:0:
command: Read (10): 28 00 00 00 00 08 00 00 38 00
-> send request to read some more bytes, ok. Note that the previous
request has not returned (yet).
sd 4:0:6:0: done 0xffff810076858488 RETRY 8000002 sd 4:0:6:0:
command: Read (10): 28 00 00 00 00 08 00 00 38 00
sdb: Current: sense key: Aborted Command
Additional sense: Overlapped commands attempted
-> this _looks_ like an error on the drive as the commands do not really
overlap. It looks more as if the device can't handle more than one
command at a time. Do we have a blacklist flag for such things?
sd 4:0:6:0: send 0xffff810076858488 sd 4:0:6:0:
command: Read (10): 28 00 00 00 00 08 00 00 38 00
-> Command requeued, okay.
sd 4:0:6:0: done 0xffff810076858488 SUCCESS 0 sd 4:0:6:0:
command: Read (10): 28 00 00 00 00 08 00 00 38 00
-> command finished, okay.
sd 4:0:6:0: done 0xffff810076858dc0 TIMEOUT 0 sd 4:0:6:0:
command: Read (10): 28 00 00 00 00 00 00 00 08 00
-> First command was still out there, but appearently never returned.
So of course error recovery started for this command.
It looks to me as if the device has aborted _both_ commands when
returning the 'overlapped commands attempted' sense.
Is that conformant behaviour?
SCSI-2 states in section 7.5.2:
A target that detects an incorrect initiator connection shall abort all
I/O processes for the initiator on the logical unit or target routine
and shall return CHECK CONDITION status. The sense key shall be set to
ABORTED COMMAND and the additional sense code shall be set to OVERLAPPED
COMMANDS ATTEMPTED.
So the behaviour of the drive seems to be okay; however, the scsi stack
doesn't abort all commands (yet).
Might that be an error in the scsi stack?
Curious,
Hannes
--
Dr. Hannes Reinecke hare@suse.de
SuSE Linux Products GmbH S390 & zSeries
Maxfeldstraße 5 +49 911 74053 688
90409 Nürnberg http://www.suse.de
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2006-02-02 13:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-02 13:00 Hannes Reinecke [this message]
2006-02-02 15:12 ` Overlapped command error handling James Bottomley
2006-02-03 9:34 ` Hannes Reinecke
2006-02-03 15:31 ` James Bottomley
-- strict thread matches above, loose matches on Subject: below --
2006-02-03 11:00 Emmanuel Fusté
2006-02-03 11:13 Emmanuel Fusté
2006-02-04 17:01 Emmanuel Fusté
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43E20272.5000506@suse.de \
--to=hare@suse.de \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox