From: Andi Kleen <andi@firstfloor.org>
To: Nikanth Karthikesan <knikanth@suse.de>
Cc: device-mapper development <dm-devel@redhat.com>,
Andi Kleen <andi@firstfloor.org>,
Christophe Saout <christophe@saout.de>,
Alasdair G Kergon <agk@redhat.com>, Milan Broz <mbroz@redhat.com>
Subject: Re: Barrier support in device mapper
Date: Thu, 18 Sep 2008 15:47:36 +0200 [thread overview]
Message-ID: <20080918134736.GL25711@one.firstfloor.org> (raw)
In-Reply-To: <200809181546.32242.knikanth@suse.de>
On Thu, Sep 18, 2008 at 03:46:31PM +0530, Nikanth Karthikesan wrote:
> Hi Milan
>
> I was able to talk to Alasdair on Freenode#device-mapper and he is also of the
> opinion full-barrier support is the way to go.
>
> On Thu, Sep 18, 2008 at 12:27 PM, Milan Broz <mbroz@redhat.com> wrote:
> > Andi's patch is not complete and I think there can be several problems with
> > it:
> >
> > - imagine DM device which has barrier support switched on by this simple
> > patch and you try to run pvmove on it. How is the barrier request processed
> > by underlying devices now?
> >
> > -> mapping can change online (pvmove, lvextend, lvconvert, ...) to more
> > complicated mapping - who reset barrier flag support?
> >
>
> I think these things will not create problems.
Correct.
>
> > - what about stacking devices? Imagine crypto - there is one device per
> > table possible under linear target (where you enable barriers by this
> > patch).
> > dm-crypt will need to implement some queue flushes to properly support
> > barriers. Another example - partition mapping over multipath (kpartx), ...
> > Are you sure that is it safe with Andi's patch?
> > ...
>
> I do not have knowledge of dm-crypt, but yes, dm-crypt might possibly reorder.
> Either they should flush the queues or atleast return -EOPNOTSUPP if we need
> to use Andi's patch.
That's already done because it doesn't call dm_table_support_barrier() on
its target. Only the simple remapper does.
All the scenarios you guys are describing (except for pvmove which
just seems to be confused thinking) would happen when the ->barrier_supported
target flag wasn't there, but it really is.
> > It is dangerous to use that patch IMO, better not support barriers at all
> > here. That's why we need something more robust.
> >
>
> I understand the possible problems.
Sorry, but Milan is just wrong on all of them as far as I know.
-Andi
--
ak@linux.intel.com
next prev parent reply other threads:[~2008-09-18 13:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-18 10:16 Barrier support in device mapper Nikanth Karthikesan
2008-09-18 13:47 ` Andi Kleen [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-09-18 5:57 Nikanth Karthikesan
2008-09-18 6:57 ` Milan Broz
2008-09-18 13:44 ` Andi Kleen
2008-09-18 16:08 ` Milan Broz
2008-09-18 18:13 ` Andi Kleen
2008-09-18 18:34 ` Milan Broz
2008-09-18 18:53 ` Andi Kleen
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=20080918134736.GL25711@one.firstfloor.org \
--to=andi@firstfloor.org \
--cc=agk@redhat.com \
--cc=christophe@saout.de \
--cc=dm-devel@redhat.com \
--cc=knikanth@suse.de \
--cc=mbroz@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 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.