[dm-devel] [PATCH] multipathd: uxsock_timeout should be assigned by conf->uxsock_timeout

Christophe Varoqui christophe.varoqui at opensvc.com
Tue Oct 11 06:45:16 UTC 2016


Good,
Merged.

On Tue, Oct 11, 2016 at 8:42 AM, <tang.junhui at zte.com.cn> wrote:

> Please have a review for this patch, any comment will be highly
> appreciated.
>
>
>
>
> 发件人:         tang.junhui at zte.com.cn
> 收件人:         christophe varoqui <christophe.varoqui at free.fr>,
> 抄送:        zhang.kai16 at zte.com.cn, dm-devel at redhat.com, "tang.junhui" <
> tang.junhui at zte.com.cn>
> 日期:         2016/09/13 18:17
> 主题:        [dm-devel] [PATCH] multipathd: uxsock_timeout should be
> assigned by        conf->uxsock_timeout
> 发件人:        dm-devel-bounces at redhat.com
> ------------------------------
>
>
>
> From: "tang.junhui" <tang.junhui at zte.com.cn>
>
> uxsock_timeout should be assigned by conf->uxsock_timeout
> before using it in uxclnt() as a CLI client timeout value,
> otherwise its default value is 0, and the CLI client timeout
> value is 0 + 100(ms), so the CLI client will be timeout very
> quickly.
>
> Signed-off-by: tang.junhui <tang.junhui at zte.com.cn>
> ---
> multipathd/main.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/multipathd/main.c b/multipathd/main.c
> index 96ef01f..a08f1a5 100644
> --- a/multipathd/main.c
> +++ b/multipathd/main.c
> @@ -2549,6 +2549,7 @@ main (int argc, char *argv[])
>
> exit(1);
>                                                    if (verbosity)
>
> conf->verbosity = verbosity;
> +                                                   uxsock_timeout =
> conf->uxsock_timeout;
>                                                    uxclnt(optarg,
> uxsock_timeout + 100);
>                                                    exit(0);
>                                   case 'B':
> @@ -2573,6 +2574,7 @@ main (int argc, char *argv[])
>                                                    exit(1);
>                                   if (verbosity)
>                                                    conf->verbosity =
> verbosity;
> +                                  uxsock_timeout = conf->uxsock_timeout;
>                                   memset(cmd, 0x0, CMDSIZE);
>                                   while (optind < argc) {
>                                                    if
> (strchr(argv[optind], ' '))
> --
> 2.8.1.windows.1
>
> --
> dm-devel mailing list
> dm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20161011/1af9e9c6/attachment.htm>


More information about the dm-devel mailing list