From: NeilBrown <neilb@suse.de>
To: "Williams, Dan J" <dan.j.williams@intel.com>
Cc: Przemyslaw Czarnowski
<przemyslaw.hawrylewicz.czarnowski@intel.com>,
linux-raid@vger.kernel.org, marcin.labun@intel.com,
ed.ciechanowski@intel.com, Doug Ledford <dledford@redhat.com>
Subject: Re: [PATCH] imsm: incorrect incremental behavior because of wrong index used
Date: Thu, 24 Nov 2011 16:23:39 +1100 [thread overview]
Message-ID: <20111124162339.56936d08@notabene.brown> (raw)
In-Reply-To: <CABE8wwtdDLoggFJev-BSB94VGz+3Y_7fU1o5GJxR53-UU+asGg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]
On Wed, 23 Nov 2011 10:56:21 -0800 "Williams, Dan J"
<dan.j.williams@intel.com> wrote:
> On Wed, Nov 23, 2011 at 8:59 AM, Przemyslaw Czarnowski
> <przemyslaw.hawrylewicz.czarnowski@intel.com> wrote:
> > Incremental in some cases prematurely assembles degraded arrays due to
> > wrong index used in code which counts missing disks
> >
> > Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
>
> Reviewed-by: Dan Williams <dan.j.williams@intel.com>
>
> > ---
> > super-intel.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/super-intel.c b/super-intel.c
> > index 360c4cc..a0672bf 100644
> > --- a/super-intel.c
> > +++ b/super-intel.c
> > @@ -2539,7 +2539,7 @@ static void getinfo_super_imsm(struct supertype *st, struct mdinfo *info, char *
> > * (catches single-degraded vs double-degraded)
> > */
> > for (j = 0; j < map->num_members; j++) {
> > - __u32 ord = get_imsm_ord_tbl_ent(dev, i, 0);
> > + __u32 ord = get_imsm_ord_tbl_ent(dev, j, 0);
> > __u32 idx = ord_to_idx(ord);
> >
> > if (!(ord & IMSM_ORD_REBUILD) &&
> >
> >
Applied, thanks.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
prev parent reply other threads:[~2011-11-24 5:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-23 16:59 [PATCH] imsm: incorrect incremental behavior because of wrong index used Przemyslaw Czarnowski
2011-11-23 18:56 ` Williams, Dan J
2011-11-24 5:23 ` NeilBrown [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=20111124162339.56936d08@notabene.brown \
--to=neilb@suse.de \
--cc=dan.j.williams@intel.com \
--cc=dledford@redhat.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=marcin.labun@intel.com \
--cc=przemyslaw.hawrylewicz.czarnowski@intel.com \
/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).