All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: "Gabriele A. Trombetti" <g.trombetti.lkrnl1213@logicschema.com>
Cc: linux-raid <linux-raid@vger.kernel.org>,
	Janos Haar <janos.haar@netcenter.hu>
Subject: Re: [PATCH v2 1/1] md/raid6: Fix raid-6 read-error correction in degraded state
Date: Thu, 6 May 2010 07:02:56 +1000	[thread overview]
Message-ID: <20100506070256.11f2dcda@notabene.brown> (raw)
In-Reply-To: <4BE1C461.6000503@logicschema.com>


Thanks.  This is now in my queue.
I may even submit it for .34 as that doesn't seem as close as I thought.

NeilBrown


On Wed, 05 May 2010 21:17:53 +0200
"Gabriele A. Trombetti" <g.trombetti.lkrnl1213@logicschema.com> wrote:

> Fix: md raid-6 was not trying to correct a read-error when in 
> singly-degraded state and was instead dropping one more device, going to 
> doubly-degraded state. This patch fixes this behaviour.
> 
> Tested-by: Janos Haar <janos.haar@netcenter.hu>
> Signed-off-by: Gabriele A. Trombetti <g.trombetti.lkrnl1213@logicschema.com>
> Reported-by: Janos Haar <janos.haar@netcenter.hu>
> --------
> --- linux-2.6.34-rc5-git8-vanilla/drivers/md/raid5.c    2010-04-28 
> 13:05:03.000000000 +0200
> +++ linux-2.6.34-rc5-git8/drivers/md/raid5.c    2010-04-28 
> 13:08:15.000000000 +0200
> @@ -1527,7 +1527,7 @@ static void raid5_end_read_request(struc
> 
>                  clear_bit(R5_UPTODATE, &sh->dev[i].flags);
>                  atomic_inc(&rdev->read_errors);
> -               if (conf->mddev->degraded)
> +               if (conf->mddev->degraded >= conf->max_degraded)
>                          printk_rl(KERN_WARNING
>                                    "raid5:%s: read error not correctable "
>                                    "(sector %llu on %s).\n",
> 
> ---------------------------------------------------------------
> 
> Resending patch:
> v2: added "Tested-by" line, subsystem mentioned in summary line, body 
> explanation mentions "md"
> 
> Thanks,
> Gabriele A. Trombetti


      reply	other threads:[~2010-05-05 21:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-05 19:17 [PATCH v2 1/1] md/raid6: Fix raid-6 read-error correction in degraded state Gabriele A. Trombetti
2010-05-05 21:02 ` Neil Brown [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=20100506070256.11f2dcda@notabene.brown \
    --to=neilb@suse.de \
    --cc=g.trombetti.lkrnl1213@logicschema.com \
    --cc=janos.haar@netcenter.hu \
    --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 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.