linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Krishnakumar R <krishnakumar.kernel@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Invalidating the pages read from a disk which md marks as faulty later
Date: Thu, 19 Jan 2012 07:19:55 +1100	[thread overview]
Message-ID: <20120119071955.03a3fe9d@notabene.brown> (raw)
In-Reply-To: <CAHhTtBVqgv1Spgvkux55-K=y7CEYWs1qFQHXDSU_Kwu_NsuTaQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]

On Wed, 18 Jan 2012 20:11:38 +0530 Krishnakumar R
<krishnakumar.kernel@gmail.com> wrote:

> Hi,
> 
> Does md invalidate the pages in the page cache for data read (earlier) from
> the disk, which md finds faulty, lets say due to an I/O error ?
> The assumption here is that since md found a disk to be faulty, the data
> which was earlier read and cached can be considered invalid. Thoughts ?
> I would assume that the pages would be backed by md device, hence is it
> possible to figure out which pages were given out with data from an
> underlying disk inorder to invalidate them ?
> 
>

Sorry, but this doesn't make any sense.

When you read from a disk, the disk drive itself does a CRC check to confirm
the data is valid.  It if isn't you don't get to see the data.  If it is, why
would you want to invalidate it?

If a device is "Faulty", that doesn't mean it has corrupted data.  It means
it has inaccessible on unchangeable data.

Though I might have  misunderstood you.  If you think I have, please give a
more detailed scenario of the situation that should be handled differently.

In any case, once md has returned the data to the caller there is nothing it
can do to "invalidate" it.

NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

       reply	other threads:[~2012-01-18 20:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHhTtBVqgv1Spgvkux55-K=y7CEYWs1qFQHXDSU_Kwu_NsuTaQ@mail.gmail.com>
2012-01-18 20:19 ` NeilBrown [this message]
2012-03-27 11:35   ` Invalidating the pages read from a disk which md marks as faulty later Alexander Lyakas

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=20120119071955.03a3fe9d@notabene.brown \
    --to=neilb@suse.de \
    --cc=krishnakumar.kernel@gmail.com \
    --cc=linux-raid@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;
as well as URLs for NNTP newsgroup(s).