From: "Darrick J. Wong" <djwong@us.ibm.com>
To: Andrew Morton <akpm@osdl.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>,
linux-scsi@vger.kernel.org, Dan Aloni <da-x@monatomic.org>,
Alexis Bruemmer <alexisb@us.ibm.com>
Subject: Re: Fw: aic94xx breaks with SATA drives that have medium errors
Date: Tue, 28 Nov 2006 12:06:13 -0800 [thread overview]
Message-ID: <456C96B5.3080301@us.ibm.com> (raw)
In-Reply-To: <20061127200550.4de27bc6.akpm@osdl.org>
> Everything works okay until I perform a read I/O to the media-error-causing
> location. Immediately I get:
>
> aic94xx: escb_tasklet_complete: phy2: REQ_TASK_ABORT
Interesting that you get REQ_TASK_ABORT for a media error...
> But the I/O only returns to the SCSI layer after its full designated
> timeout, instead of returning quickly with MEDIUM_ERROR.
Yep. The abort function doesn't know how to tell libata to abort the
command. I suppose the "proper" thing to do would be to modify
sas_ata_task_done to check if the SAS_TASK_ABORTED or
SAS_TASK_INITIATOR_ABORTED flags are set and send some sort of ATA error
code back that would cause a retry. Though, I don't see why the
sequencer sends back REQ_TASK_ABORT--presumably the drive generates some
media error data that could be fed to libata.
> After that particular I/O fails, every I/O to the driver will immediately
> return as aborted. Unloading and loading the driver reverses the problem
> but may crash the kernel not long after printing this:
>
> Nov 28 02:13:58 pro210 kernel: aic94xx: Uh-oh! Pending is not empty!
> Nov 28 02:13:58 pro210 kernel: aic94xx: freeing from pending
Yep. Side effect of above. I'll send you a patch later today when I
get this sorted out. In any case, thank you for testing out the driver! :)
--D
prev parent reply other threads:[~2006-11-28 20:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 4:05 Fw: aic94xx breaks with SATA drives that have medium errors Andrew Morton
2006-11-28 20:06 ` Darrick J. Wong [this message]
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=456C96B5.3080301@us.ibm.com \
--to=djwong@us.ibm.com \
--cc=James.Bottomley@steeleye.com \
--cc=akpm@osdl.org \
--cc=alexisb@us.ibm.com \
--cc=da-x@monatomic.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.