All of lore.kernel.org
 help / color / mirror / Atom feed
From: <peng.liang5@zte.com.cn>
To: bmarzins@redhat.com
Cc: zhang.kai16@zte.com.cn, dm-devel@redhat.com
Subject: Re: [PATCH] libmultipath: ensure dev_loss_tmo will be update to MAX_DEV_LOSS_TMO if no_path_retry set to queue
Date: Thu, 1 Dec 2016 09:06:14 +0800 (CST)	[thread overview]
Message-ID: <201612010906149840484@zte.com.cn> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 2082 bytes --]

If fast_io_fail_tmo isn't set, it will be use the DEFAULT_FAST_IO_FAIL in select_fast_io_fail.

So, multipath will not run the limited of dev_loss_tmo to 600.


And I think using MP_FAST_IO_FAIL_UNSET as the condition is meaningless after multipath

run select_fast_io_fail even if it's not set.






原始邮件



发件人:BenjaminMarzinski
收件人:彭亮10137102
抄送人:<dm-devel@redhat.com>张凯10072500
日 期 :2016年11月29日 08:30
主 题 :Re: [dm-devel] [PATCH] libmultipath: ensure dev_loss_tmo will be update to MAX_DEV_LOSS_TMO if no_path_retry set to queue





On Fri, Nov 25, 2016 at 02:36:04PM +0800, peng.liang5@zte.com.cn wrote:
> From: PengLiang <peng.liang5@zte.com.cn>
> 
> If no_path_retry set to queue, we should make sure dev_loss_tmo update to MAX_DEV_LOSS_TMO.
> But, it will be limit to 600 if fast_io_fail_tmo set to off or 0 meanwhile.

Doesn't the system still limit dev_loss_tmo to 600 if fast_io_fail_tmo isn't set. Multipath
was using this limit, since the underlying system uses it.

-Ben

> 
> Signed-off-by: PengLiang <peng.liang5@zte.com.cn>
> ---
>  libmultipath/discovery.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
> index aaa915c..05b0842 100644
> --- a/libmultipath/discovery.c
> +++ b/libmultipath/discovery.c
> @@ -608,7 +608,8 @@ sysfs_set_rport_tmo(struct multipath *mpp, struct path *pp)
>                  goto out
>              }
>          }
> -    } else if (mpp->dev_loss > DEFAULT_DEV_LOSS_TMO) {
> +    } else if (mpp->dev_loss > DEFAULT_DEV_LOSS_TMO &&
> +        mpp->no_path_retry != NO_PATH_RETRY_QUEUE) {
>          condlog(3, "%s: limiting dev_loss_tmo to %d, since "
>              "fast_io_fail is not set",
>              rport_id, DEFAULT_DEV_LOSS_TMO)
> -- 
> 2.8.1.windows.1

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[-- Attachment #1.1.2: Type: text/html , Size: 4502 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2016-12-01  1:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-01  1:06 peng.liang5 [this message]
2016-12-01 16:44 ` [PATCH] libmultipath: ensure dev_loss_tmo will be update to MAX_DEV_LOSS_TMO if no_path_retry set to queue Benjamin Marzinski
  -- strict thread matches above, loose matches on Subject: below --
2016-12-08  1:38 peng.liang5
2016-12-07  6:42 peng.liang5
2016-12-07  6:57 ` Hannes Reinecke
2016-12-07 17:08 ` Benjamin Marzinski
2016-11-25  6:36 peng.liang5
2016-11-26  9:05 ` Christophe Varoqui
2016-11-29  0:16 ` 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=201612010906149840484@zte.com.cn \
    --to=peng.liang5@zte.com.cn \
    --cc=bmarzins@redhat.com \
    --cc=dm-devel@redhat.com \
    --cc=zhang.kai16@zte.com.cn \
    /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.