From: Benjamin Marzinski Subject: [PATCH 11/16] Fix max path checker timing Date: Thu, 2 May 2013 16:46:32 -0500 Message-ID: <1367531197-8987-12-git-send-email-bmarzins@redhat.com> References: <1367531197-8987-1-git-send-email-bmarzins@redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1367531197-8987-1-git-send-email-bmarzins@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development Cc: Christophe Varoqui List-Id: dm-devel.ids Due to some code being placed inside the wrong block, the number of seconds to wait between path checks (pp->tick), was only getting set to the path's individual check interval if that wasn't equal to the max check interval. Otherwise it was using the default for a failed path. This patch makes sure that pp->ticks always always gets set correctly for active paths. Signed-off-by: Benjamin Marzinski --- multipathd/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/multipathd/main.c b/multipathd/main.c index 440d254..df1c5b9 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -1219,11 +1219,10 @@ check_path (struct vectors * vecs, struct path * pp) pp->checkint = 2 * pp->checkint; else pp->checkint = conf->max_checkint; - - pp->tick = pp->checkint; - condlog(4, "%s: delay next check %is", - pp->dev_t, pp->tick); } + pp->tick = pp->checkint; + condlog(4, "%s: delay next check %is", + pp->dev_t, pp->tick); } } else if (newstate == PATH_DOWN) { -- 1.8.2