All of lore.kernel.org
 help / color / mirror / Atom feed
From: tang.junhui@zte.com.cn
To: christophe.varoqui@opensvc.com
Cc: bart.vanassche@sandisk.com, dm-devel@redhat.com,
	"tang.junhui" <tang.junhui@zte.com.cn>,
	zhang.kai16@zte.com.cn
Subject: Re: [PATCH] multipathd: uxsock_timeout should be assigned by conf->uxsock_timeout
Date: Tue, 11 Oct 2016 14:42:53 +0800	[thread overview]
Message-ID: <OF78C25DBE.68C1AA2B-ON48258049.0024B703-48258049.0024E27C@zte.com.cn> (raw)
In-Reply-To: <1473761329-8712-1-git-send-email-tang.junhui@zte.com.cn>


[-- Attachment #1.1: Type: text/plain, Size: 2172 bytes --]

Please have a review for this patch, any comment will be highly 
appreciated.




发件人:         tang.junhui@zte.com.cn
收件人:         christophe varoqui <christophe.varoqui@free.fr>, 
抄送:   zhang.kai16@zte.com.cn, dm-devel@redhat.com, "tang.junhui" 
<tang.junhui@zte.com.cn>
日期:   2016/09/13 18:17
主题:   [dm-devel] [PATCH] multipathd: uxsock_timeout should be assigned 
by      conf->uxsock_timeout
发件人: dm-devel-bounces@redhat.com



From: "tang.junhui" <tang.junhui@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@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@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel



[-- Attachment #1.2: Type: text/html, Size: 5229 bytes --]

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



  reply	other threads:[~2016-10-11  6:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13 10:08 [PATCH] multipathd: uxsock_timeout should be assigned by conf->uxsock_timeout tang.junhui
2016-10-11  6:42 ` tang.junhui [this message]
2016-10-11  6:45   ` Christophe Varoqui

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=OF78C25DBE.68C1AA2B-ON48258049.0024B703-48258049.0024E27C@zte.com.cn \
    --to=tang.junhui@zte.com.cn \
    --cc=bart.vanassche@sandisk.com \
    --cc=christophe.varoqui@opensvc.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.