All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: [PATCH] Don't display the state of the newly added map	during addition in the daemon and don't switch groups.
Date: Fri, 20 Mar 2009 12:37:55 +0100	[thread overview]
Message-ID: <49C38013.9090709@suse.de> (raw)
In-Reply-To: <1237419489-3303-4-git-send-email-konrad@virtualiron.com>

Hi Konrad,

Konrad Rzeszutek wrote:
> From: Konrad Rzeszutek <konrad@mars.virtualiron.com>
> 
> A previous commit mass-changed #ifdef DAEMON to check for 'mpp->waiter'. Unfortunatly
> when the 'domap' function is called with ACT_CREATE in the daemon, the mpp->waiter is not
> set, hence the multipath client mode logic is choosen. Fixing this triggers another
> issues which is that newly added path via ACT_CREATE won't have their waitevent thread
> created as the caller checks mpp->action (which changed to ACT_NOTHING) and won't
> start the thread.

Nice. Far cleaner fix. But you forgot this:

diff --git a/libmultipath/dmparser.c b/libmultipath/dmparser.c
index f1975fb..2d024ff 100644
--- a/libmultipath/dmparser.c
+++ b/libmultipath/dmparser.c
@@ -13,6 +13,7 @@
 #include "structs.h"
 #include "util.h"
 #include "debug.h"
+#include "config.h"
 
 #define WORD_SIZE 64
 
@@ -297,7 +298,7 @@ disassemble_map (vector pathvec, char * params, struct multi
path * mpp)
                                strncpy(pp->dev_t, word, BLK_DEV_SIZE);
 
                                /* Only call this in multipath client mode */
-                               if (!mpp->waiter && store_path(pathvec, pp))
+                               if (!conf->daemon && store_path(pathvec, pp))
                                        goto out1;
                        }
                        FREE(word);

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)

      parent reply	other threads:[~2009-03-20 11:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-18 23:38 [PATCH] Memory leaks and race condition fixes Konrad Rzeszutek
2009-03-18 23:38 ` [PATCH] Free prio_name and checker_name now that we dynamically allocate them Konrad Rzeszutek
2009-03-18 23:38   ` [PATCH] Unload prio and checkers libraries during shutdown Konrad Rzeszutek
2009-03-18 23:38     ` [PATCH] Don't display the state of the newly added map during addition in the daemon and don't switch groups Konrad Rzeszutek
2009-03-18 23:38       ` [PATCH] Race-condition fix with free_waiter threads during shutdown Konrad Rzeszutek
2009-03-20 11:37       ` Hannes Reinecke [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=49C38013.9090709@suse.de \
    --to=hare@suse.de \
    --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 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.