From: Mike Snitzer <snitzer@redhat.com>
To: Alasdair G Kergon <agk@redhat.com>
Cc: dm-devel@redhat.com, martin.petersen@oracle.com
Subject: Re: [PATCH v2] expose dm-stripe target's topology I/O hints
Date: Thu, 27 Aug 2009 10:24:51 -0400 [thread overview]
Message-ID: <20090827142451.GC29894@redhat.com> (raw)
In-Reply-To: <20090827141939.GB29894@redhat.com>
On Thu, Aug 27 2009 at 10:19am -0400,
Mike Snitzer <snitzer@redhat.com> wrote:
> On Thu, Aug 27 2009 at 9:12am -0400,
> Alasdair G Kergon <agk@redhat.com> wrote:
>
> > On Fri, Aug 21, 2009 at 10:17:18AM -0400, Mike Snitzer 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.
> >
> > Do you still think this should go into 2.6.31?
>
> Yes, it is important. Otherwise DM won't expose the proper I/O hints in
> /sys for a striped device. This is bad because then higher-level tools
> won't be able to rely on that information to properly align ther data
> (e.g. mkfs.extX -E).
>
> > If so, please supply a revised patch header that explains the benefits
> > of having the patch (and reference the new stuff in 2.6.31 that it
> > uses).
> >
> > > + limits->io_opt = chunk_size * sc->stripes;
> >
> > blk_queue_io_opt() ?
Did you mean why not use blk_limits_io_opt()?
> Martin didn't expose such an interface because all existing code (both
> DM and MD) does not require anything beyond a simple assignment. I
> worked with Martin to establish the blk_queue_io_min() precisely because
> DM needed to avoid duplicating the block layer's logic. I think Martin
> stopped short of adding a symmetric wrapper for setting io_opt because
> he felt it was unnecessary. But I could be mis-remembering.
To clarify further; I meant to say blk_limits_io_min() in my above
paragraph. We don't have access to the queue (because target's don't
have a queue); we're working with 'struct queue_limits *limits'
Mike
next prev parent reply other threads:[~2009-08-27 14:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-21 14:17 [PATCH v2] expose dm-stripe target's topology I/O hints Mike Snitzer
2009-08-27 13:12 ` Alasdair G Kergon
2009-08-27 14:19 ` Mike Snitzer
2009-08-27 14:24 ` Mike Snitzer [this message]
2009-08-27 17:26 ` Martin K. Petersen
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=20090827142451.GC29894@redhat.com \
--to=snitzer@redhat.com \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=martin.petersen@oracle.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 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.