From: Guan Junxiong Subject: Re: [PATCH v2 18/20] libmultipath: path latency: log threshold with p2 Date: Thu, 8 Feb 2018 20:04:51 +0800 Message-ID: References: <20180113211938.31552-1-mwilck@suse.com> <20180113211938.31552-19-mwilck@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180113211938.31552-19-mwilck@suse.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Martin Wilck , Christophe Varoqui Cc: dm-devel@redhat.com, Xose Vazquez Perez , niuhaoxin , "Shenhong (C)" List-Id: dm-devel.ids Looks Good. Reviewed-by: Guan Junxiong On 2018/1/14 5:19, Martin Wilck wrote: > This is not a critical error. It just means that the path in > question will have low priority (rightly so, if it has >100s latency). > --- > libmultipath/prioritizers/path_latency.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libmultipath/prioritizers/path_latency.c b/libmultipath/prioritizers/path_latency.c > index b8c5bc7c50a4..ce5c95dd7075 100644 > --- a/libmultipath/prioritizers/path_latency.c > +++ b/libmultipath/prioritizers/path_latency.c > @@ -299,7 +299,7 @@ int getprio(struct path *pp, char *args, unsigned int timeout) > (long long)pow(base_num, lg_avglatency)); > > if (lg_avglatency > lg_maxavglatency) { > - pp_pl_log(0, > + pp_pl_log(2, > "%s: average latency (%lld us) is outside the thresold (%lld us)", > pp->dev, (long long)pow(base_num, lg_avglatency), > (long long)MAX_AVG_LATENCY); >