From: "Daniel B." <dsb@smart.net>
To: unlisted-recipients:; (no To-header on input)
Cc: linux-kernel@vger.kernel.org
Subject: Re: IDE DMA errors, massive disk corruption: Why? Fixed Yet? Whynot re-do failed op?
Date: Tue, 07 Oct 2003 01:24:19 -0400 [thread overview]
Message-ID: <3F824E03.C309F2BE@smart.net> (raw)
In-Reply-To: 3F81DE1D.6070304@pobox.com
Jeff Garzik wrote:
>
> Daniel B. wrote:
> > If the kernel starts a write command for block 993, wouldn't it wait
> > for a DMA interrupt signalling that the drive has received and accepted
> > the command before the kernel starts the write command for block 10934?
>
> With command queueing, no, it would not wait.
Other than the write-back caching, it's not an open-loop system,
right? Regardless of how commands are batched or queued, isn't there
some acknowledgment back from the drive that some batch of commands
(or some command, or some part of some command) was completed?
Surely the kernel checks for such acknowledgments, right?
DMA-complete interrupts are probably how some of those acknowledgments
are communicated, right?
So if the kernel doesn't get an expected DMA interrupt, it should
know that some command(/batch/part) wasn't acknowledged successfully,
right? And surely it can tell _which_ command/batch/part wasn't
acknowledged (if multiple ones can be outstanding), right?
So if some command/batch/etc. wasn't acknowledged, why can't the
kernel retry the command/batch/etc.?
> > If it timed out waiting for that interrupt, can't it re-issue the
> > write for block 993 before proceeding?
>
> Assuming a large amount of sanity in your OS driver... certainly.
Given the serious of disk data corruption, why isn't the Linux kernel
more reliable here? Hasn't this family of IDE problems been around
for a couple of years now?
Daniel
--
Daniel Barclay
dsb@smart.net
next prev parent reply other threads:[~2003-10-07 5:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-06 19:32 IDE DMA errors, massive disk corruption: Why? Fixed Yet? W hy not re-do failed op? Mudama, Eric
2003-10-06 20:20 ` IDE DMA errors, massive disk corruption: Why? Fixed Yet? Why " Daniel B.
2003-10-06 20:45 ` Valdis.Kletnieks
2003-10-06 21:07 ` Daniel B.
2003-10-06 21:26 ` Jeff Garzik
2003-10-07 5:24 ` Daniel B. [this message]
2003-10-07 6:03 ` IDE DMA errors, massive disk corruption: Why? Fixed Yet? Whynot " Valdis.Kletnieks
2003-10-07 12:23 ` Ruth Ivimey-Cook
2003-10-07 13:46 ` IDE DMA errors, massive disk corruption: Why? Fixed Yet? Whynotre-do " Daniel B.
2003-10-07 13:32 ` IDE DMA errors, massive disk corruption: Why? Fixed Yet? Why not re-do " Daniel B.
2003-10-10 1:10 ` IDE DMA errors, massive disk corruption: Why? Fixed Yet? W hy " Greg Stark
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=3F824E03.C309F2BE@smart.net \
--to=dsb@smart.net \
--cc=linux-kernel@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.