From: Kent Overstreet <kmo@daterainc.com>
To: Mike Snitzer <snitzer@redhat.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-bcache@vger.kernel.org, Neil Brown <neilb@suse.de>,
Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH] bcache/md: Use raid stripe size
Date: Tue, 7 Jan 2014 13:59:54 -0800 [thread overview]
Message-ID: <20140107215954.GL9037@kmo> (raw)
In-Reply-To: <CAMM=eLcGTYcSdYW9vWYWk64dRuwgyY_O90NySb_jR9zQTCBTJg@mail.gmail.com>
On Mon, Jan 06, 2014 at 09:04:25PM -0500, Mike Snitzer wrote:
> On Wed, Dec 18, 2013 at 8:12 PM, Kent Overstreet <kmo@daterainc.com> wrote:
> > Now that we've got code for raid5/6 stripe awareness, bcache just needs
> > to know about the stripes and when writing partial stripes is expensive
> > - we probably don't want to enable this optimization for raid1 or 10,
> > even though they have stripes. So add a flag to queue_limits.
> >
> > Signed-off-by: Kent Overstreet <kmo@daterainc.com>
> > ---
> > This is in my pile of bcache stuff queued up for 3.14 - if no one objects it'll
> > be in my bcache pull request:
> >
> > drivers/md/bcache/super.c | 6 ++++++
> > drivers/md/raid5.c | 1 +
> > include/linux/blkdev.h | 1 +
> > 3 files changed, 8 insertions(+)
>
> Hi Kent,
>
> > diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
> > index 02cb6f0ea7..0375654adb 100644
> > --- a/include/linux/blkdev.h
> > +++ b/include/linux/blkdev.h
> > @@ -291,6 +291,7 @@ struct queue_limits {
> > unsigned char discard_misaligned;
> > unsigned char cluster;
> > unsigned char discard_zeroes_data;
> > + unsigned char raid_partial_stripes_expensive;
> > };
> >
> > struct request_queue {
>
> If you add a new member to queue_limits you need to update
> blk_stack_limits() so that it propagates as you stack devices.
Thanks, going to send Jens a new pull after he does some merging so I'll include
that in the updated version.
prev parent reply other threads:[~2014-01-07 22:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-19 1:12 [PATCH] bcache/md: Use raid stripe size Kent Overstreet
2014-01-07 2:04 ` Mike Snitzer
2014-01-07 21:59 ` Kent Overstreet [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=20140107215954.GL9037@kmo \
--to=kmo@daterainc.com \
--cc=axboe@kernel.dk \
--cc=linux-bcache@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@suse.de \
--cc=snitzer@redhat.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