Linux Device Mapper development
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: [PATCH 07/18] Replicator: suspend/deactivate replicator
Date: Wed, 4 Nov 2009 09:15:16 -0500	[thread overview]
Message-ID: <20091104141516.GA23183@redhat.com> (raw)
In-Reply-To: <hcrjlm$17p$1@ger.gmane.org>

On Wed, Nov 04 2009 at  5:05am -0500,
Zdenek Kabelac <zkabelac@redhat.com> wrote:

> Dne 3.11.2009 17:46, Mike Snitzer napsal(a):
> > On Mon, Nov 02 2009 at  9:20am -0500,
> > Zdenek Kabelac <zkabelac@redhat.com> wrote:
> > 
> >> Introducing dm_tree_set_replicator_suspend() to suspend
> >> replicator control device before actual deactivation of replicator-dev
> >> head device.
> >>
> >>
> >>  	int activation_priority;	/* 0 gets activated first */
> >> +	int replicator_suspend;		/* 1 gets suspend first */
> >>  
> >>  	uint16_t udev_flags;		/* Udev control flags */
> >>  
> > 
> > I think it would be wise to make this more generic,
> > e.g. "suspend_priority".
> > 
> > It could be that other future devices would like to prioritize the
> > suspend sequence too.  Having a means to do so (without using a
> > seemingly replicator-specific node attribute) would be good.
> > 
> > So this really just amounts to: s/replicator_suspend/suspend_priority/
> 
> 
>   I think using 'priority' would be more challenging here - for replicator it
> is only needs to check parental node - while with priority you would probably
> expect full tree traversal to see whether there is node which should be
> suspend in front of current device - thought the code could be probably
> extended in a way to specify recursive traversal depth - for replicator tree
> depth 1 is enough.
> 
>   Previous implementation was probably more generic in this, but required API
> changes - the use case for current implementation is rather focused on the
> replicator's needs with the advantage, it will not influence anything else.
> 
>   I think at this moment this API is static internal and might be probably
> easily changed/modified once some similar target would need to use it ?
> (It's not easy to predict future use case)

Fair enough, and maybe my naming suggestion of "suspend_priority" wasn't
quite right but I was just thinking there isn't a need to make this flag
replicator specific.  But you're right, if something else needs it in
the future we can change it then.

Mike

  reply	other threads:[~2009-11-04 14:15 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-02 14:20 Replicator part for lvm Zdenek Kabelac
2009-11-02 14:20 ` [PATCH 01/18] Adding fflush after yes/no prompt Zdenek Kabelac
2009-11-02 14:20   ` [PATCH 02/18] Export outnl and indent functions for modules Zdenek Kabelac
2009-11-02 14:20     ` [PATCH 03/18] Export outsz() and outhnt() " Zdenek Kabelac
2009-11-02 14:20       ` [PATCH 04/18] Export outfc() macro and out_text_with_comment() Zdenek Kabelac
2009-11-02 14:20         ` [PATCH 05/18] Use outsz macro Zdenek Kabelac
2009-11-02 14:20           ` [PATCH 06/18] Replicator: add libdm support Zdenek Kabelac
2009-11-02 14:20             ` [PATCH 07/18] Replicator: suspend/deactivate replicator Zdenek Kabelac
     [not found]               ` <1257171622-8380-9-git-send-email-zkabelac@redhat.com>
2009-11-02 14:20                 ` [PATCH 09/18] Replicator: vg validation Zdenek Kabelac
2009-11-02 14:20                   ` [PATCH 10/18] Replicator: extend _lv_each_dependency() rep. deps Zdenek Kabelac
2009-11-02 14:20                     ` [PATCH 11/18] Replicator: update _create_partial_dtree() Zdenek Kabelac
2009-11-02 14:20                       ` [PATCH 12/18] Replicator: add replicator to dtree Zdenek Kabelac
2009-11-02 14:20                         ` [PATCH 13/18] Replicator: do not remove of replicators' LVs Zdenek Kabelac
2009-11-02 14:20                           ` [PATCH 14/18] Replicator: activate change for vgchange Zdenek Kabelac
2009-11-02 14:20                             ` [PATCH 15/18] Replicator: add new options for replicator Zdenek Kabelac
2009-11-02 14:20                               ` [PATCH 16/18] Replicator: update copyright dates Zdenek Kabelac
2009-11-02 14:20                                 ` [PATCH 17/18] Replicator: new variable in generated file Zdenek Kabelac
2009-11-02 14:20                                   ` [PATCH 18/18] Replicator: update of generated configure file Zdenek Kabelac
2009-11-03 16:46               ` [PATCH 07/18] Replicator: suspend/deactivate replicator Mike Snitzer
2009-11-04 10:05                 ` Zdenek Kabelac
2009-11-04 14:15                   ` Mike Snitzer [this message]
2009-11-02 14:59           ` [PATCH 05/18] Use outsz macro Alasdair G Kergon
2009-11-02 14:56         ` [PATCH 04/18] Export outfc() macro and out_text_with_comment() Alasdair G Kergon
2009-11-02 14:54       ` [PATCH 03/18] Export outsz() and outhnt() for modules Alasdair G Kergon
2009-11-03 11:04         ` Zdenek Kabelac
2009-11-02 14:50     ` [PATCH 02/18] Export outnl and indent functions " Alasdair G Kergon
2009-11-02 14:49   ` [PATCH 01/18] Adding fflush after yes/no prompt Alasdair G Kergon

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=20091104141516.GA23183@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