All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Benjamin Marzinski" <bmarzins@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: [PATCH v2 5/7] multipathd: add messages on delayed path addition
Date: Mon, 13 Feb 2017 22:06:51 -0600	[thread overview]
Message-ID: <1487045213-15776-6-git-send-email-bmarzins@redhat.com> (raw)
In-Reply-To: <1487045213-15776-1-git-send-email-bmarzins@redhat.com>

When multipath delays adding a path because the device is waiting for
udev to finish initialization, it now logs a message, so the users
know what happened to the path.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
 multipathd/main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/multipathd/main.c b/multipathd/main.c
index 5480e96..33b7ad6 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -485,6 +485,8 @@ ev_add_map (char * dev, char * alias, struct vectors * vecs)
 
 	if (mpp) {
 		if (mpp->wait_for_udev > 1) {
+			condlog(2, "%s: performing delayed actions",
+				mpp->alias);
 			if (update_map(mpp, vecs))
 				/* setup multipathd removed the map */
 				return 1;
@@ -719,6 +721,7 @@ ev_add_path (struct path * pp, struct vectors * vecs)
 	    (pathcount(mpp, PATH_UP) > 0 ||
 	     (pathcount(mpp, PATH_GHOST) > 0 && pp->tpgs != TPGS_IMPLICIT))) {
 		/* if wait_for_udev is set and valid paths exist */
+		condlog(2, "%s: delaying path addition until %s is fully initialized", pp->dev, mpp->alias);
 		mpp->wait_for_udev = 2;
 		orphan_path(pp, "waiting for create to complete");
 		return 0;
-- 
1.8.3.1

  parent reply	other threads:[~2017-02-14  4:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-14  4:06 [PATCH v2 0/7] misc patches Benjamin Marzinski
2017-02-14  4:06 ` [PATCH v2 1/7] kpartx: don't keep creating recursive partitions Benjamin Marzinski
2017-02-14  4:06 ` [PATCH v2 2/7] libmultipath: add detect_checker option Benjamin Marzinski
2017-02-14 15:40   ` Hannes Reinecke
2017-02-14  4:06 ` [PATCH v2 3/7] libmultipath: cleanup orphan device states Benjamin Marzinski
2017-02-14  4:06 ` [PATCH v2 4/7] multipathd: don't update priority of failed paths Benjamin Marzinski
2017-02-14  4:06 ` Benjamin Marzinski [this message]
2017-02-14  4:06 ` [PATCH v2 6/7] multipathd: allow resetting stats Benjamin Marzinski
2017-02-14  4:06 ` [PATCH v2 7/7] fix udev rules for failed multipath devices Benjamin Marzinski

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=1487045213-15776-6-git-send-email-bmarzins@redhat.com \
    --to=bmarzins@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 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.