From: Mike Snitzer <snitzer@redhat.com>
To: dm-devel@redhat.com
Subject: Re: expose dm-stripe target's topology I/O hints
Date: Fri, 21 Aug 2009 10:16:39 -0400 [thread overview]
Message-ID: <20090821141638.GA4086@redhat.com> (raw)
In-Reply-To: <1247261592-9803-1-git-send-email-snitzer@redhat.com>
On Fri, Jul 10 2009 at 5:33pm -0400,
Mike Snitzer <snitzer@redhat.com> wrote:
> Add .io_hints to 'struct target_type' to allow the I/O hints portion of
> the 'struct queue_limits' to be set by each target. Expose dm-stripe
> target's topology I/O hints.
>
> NOTE: This patch makes use of blk_limits_io_min(); which will be
> upstream, via the block tree, in the near future.
>
> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
> ---
>
> diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c
> index b240e85..9350566 100644
> --- a/drivers/md/dm-stripe.c
> +++ b/drivers/md/dm-stripe.c
> @@ -328,6 +328,16 @@ static int stripe_iterate_devices(struct dm_target *ti,
> return ret;
> }
>
> +static void stripe_io_hints(struct dm_target *ti,
> + struct queue_limits *limits)
> +{
> + struct stripe_c *sc = ti->private;
> + unsigned chunk_size = (sc->chunk_mask + 1) << 9;
> +
> + blk_limits_io_min(chunk_size);
> + limits->io_opt = chunk_size * sc->stripes;
> +}
The call to blk_limits_io_min() is missing the first queue_limits arg.
I'll send v2 of this patch.
prev parent reply other threads:[~2009-08-21 14:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-10 21:33 [PATCH] expose dm-stripe target's topology I/O hints Mike Snitzer
2009-08-05 13:07 ` Mike Snitzer
2009-08-21 14:16 ` Mike Snitzer [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=20090821141638.GA4086@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@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