All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Barrier support in device mapper
@ 2008-09-18 10:16 Nikanth Karthikesan
  2008-09-18 13:47 ` Andi Kleen
  0 siblings, 1 reply; 9+ messages in thread
From: Nikanth Karthikesan @ 2008-09-18 10:16 UTC (permalink / raw)
  To: Milan Broz
  Cc: device-mapper development, Andi Kleen, Christophe Saout,
	Alasdair G Kergon

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.

> - 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.

>
> 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.

> Unfortunately I received _no_ feedback to mentioned RFC barrier patches.

Alasdair said that he will be reviewing/queueing them next week.

Thanks
Nikanth

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Barrier support in device mapper
@ 2008-09-18  5:57 Nikanth Karthikesan
  2008-09-18  6:57 ` Milan Broz
  0 siblings, 1 reply; 9+ messages in thread
From: Nikanth Karthikesan @ 2008-09-18  5:57 UTC (permalink / raw)
  To: Alasdair G Kergon; +Cc: device-mapper development, Andi Kleen, Milan Broz

Hi Alasdair

What are plans in supporting barriers in device mapper?

Sometime back Andi Kleen posted a patch[1] to support barriers for single-
device dm-devices.

Recently Milan Broz posted an RFC patch-set[2] to implement full-barrier 
support.

Are we going to get full-barrier support soon? If not, I would like to see 
Andi's patch being merged till we get full barrier support ready. I would like 
to know your thoughts.

Thanks
Nikanth Karthikesan
SUSE Labs

[1] http://lkml.org/lkml/2008/2/15/125
[2] http://article.gmane.org/gmane.linux.kernel.device-mapper.devel/5941

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-09-18 18:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-18 10:16 Barrier support in device mapper Nikanth Karthikesan
2008-09-18 13:47 ` Andi Kleen
  -- 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

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.