linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Richard W.M. Jones" <rjones@redhat.com>
To: NeilBrown <neilb@suse.de>
Cc: Jens Axboe <axboe@kernel.dk>,
	Kent Overstreet <koverstreet@google.com>,
	Calvin Owens <jcalvinowens@gmail.com>,
	linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org,
	majianpeng@gmail.com
Subject: Re: [PATCH] md: Partially revert 2f6db2a7, which broke raid5
Date: Thu, 30 May 2013 08:31:21 +0100	[thread overview]
Message-ID: <20130530073120.GP4515@redhat.com> (raw)
In-Reply-To: <20130530092243.52fa17c3@notabene.brown>

On Thu, May 30, 2013 at 09:22:43AM +1000, NeilBrown wrote:
> On Wed, 29 May 2013 15:03:40 +0200 Jens Axboe <axboe@kernel.dk> wrote:
> 
> > On Wed, May 29 2013, Richard W.M. Jones wrote:
> > > 
> > > On Sun, May 19, 2013 at 10:51:45AM -0700, Kent Overstreet wrote:
> > > > Sorry for the delay - been vacationing. Reproduced the original bug,
> > > > here's a patch that fixes it:
> > > > 
> > > > 
> > > > commit 402f5db3708b2062795a384a3d8397cf702e27bc
> > > > Author: Kent Overstreet <koverstreet@google.com>
> > > > Date:   Sun May 19 10:27:07 2013 -0700
> > > > 
> > > >     raid5: Initialize bi_vcnt
> > > >     
> > > >     The patch that converted raid5 to use bio_reset() forgot to initialize
> > > >     bi_vcnt.
> > > >     
> > > >     Signed-off-by: Kent Overstreet <koverstreet@google.com>
> > > >     Cc: NeilBrown <neilb@suse.de>
> > > >     Cc: Jens Axboe <axboe@kernel.dk>
> > > >     Cc: linux-raid@vger.kernel.org
> > > > 
> > > > diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
> > > > index 9359828..753f318 100644
> > > > --- a/drivers/md/raid5.c
> > > > +++ b/drivers/md/raid5.c
> > > > @@ -664,6 +664,7 @@ static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s)
> > > >  			if (test_bit(R5_ReadNoMerge, &sh->dev[i].flags))
> > > >  				bi->bi_rw |= REQ_FLUSH;
> > > >  
> > > > +			bi->bi_vcnt = 1;
> > > >  			bi->bi_io_vec[0].bv_len = STRIPE_SIZE;
> > > >  			bi->bi_io_vec[0].bv_offset = 0;
> > > >  			bi->bi_size = STRIPE_SIZE;
> > > > @@ -701,6 +702,7 @@ static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s)
> > > >  			else
> > > >  				rbi->bi_sector = (sh->sector
> > > >  						  + rrdev->data_offset);
> > > > +			rbi->bi_vcnt = 1;
> > > >  			rbi->bi_io_vec[0].bv_len = STRIPE_SIZE;
> > > >  			rbi->bi_io_vec[0].bv_offset = 0;
> > > >  			rbi->bi_size = STRIPE_SIZE;
> > > 
> > > Ditto to the previous follow up.  We've been tracking this
> > > bug for nearly a month:
> > > 
> > > https://bugzilla.redhat.com/show_bug.cgi?id=962079
> > > 
> > > Please include this (or the other) patch to fix it.
> > 
> > I'm assuming both Kent and I are waiting for Neil to pick it up. Neil, I
> > can include this in my next round going upstream, just let me know. It
> > should have been sent upstream a while back, sorry guys.
> > 
> 
> Seems you were waiting for me, and I was waiting for you :-)
> 
> Yes: please include it with your next round.  Thanks!

BTW I tested this patch and it works, so:

Tested-by: Richard W.M. Jones <rjones@redhat.com>

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW

      parent reply	other threads:[~2013-05-30  7:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-17 21:32 [PATCH] md: Partially revert 2f6db2a7, which broke raid5 Calvin Owens
2013-05-18  7:05 ` Jens Axboe
2013-05-19 17:51   ` Kent Overstreet
2013-05-28 16:03     ` Ilia Mirkin
2013-05-29 12:43     ` Richard W.M. Jones
2013-05-29 13:03       ` Jens Axboe
2013-05-29 23:22         ` NeilBrown
2013-05-30  6:42           ` Jens Axboe
2013-05-30  7:31           ` Richard W.M. Jones [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=20130530073120.GP4515@redhat.com \
    --to=rjones@redhat.com \
    --cc=axboe@kernel.dk \
    --cc=jcalvinowens@gmail.com \
    --cc=koverstreet@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=majianpeng@gmail.com \
    --cc=neilb@suse.de \
    /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).