Skip to contentSkip to conversation

multipathd: uxsock_timeout should be assigned by conf->uxsock_timeout

PATCH In review [email protected] 2 participants 3 messages Sep 13, 2016 – Oct 11, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipathd: uxsock_timeout should be assigned by conf->uxsock_timeout

From: "tang.junhui" <[email protected]>

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.

---
 multipathd/main.c | 2 ++
 1 file changed, 2 insertions(+)
multipathd/main.c +2 -0
index 96ef01f..a08f1a5 100644
@@ -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], ' '))
Signature · 1 line
2.8.1.windows.1
#1 lore raw

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

发件人: [email protected]
收件人: christophe varoqui <[email protected]>,
抄送: [email protected], [email protected], "tang.junhui"
<[email protected]>
日期: 2016/09/13 18:17
主题: [dm-devel] [PATCH] multipathd: uxsock_timeout should be assigned
by conf->uxsock_timeout
发件人: [email protected]

From: "tang.junhui" <[email protected]>

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.

---
 multipathd/main.c | 2 ++
 1 file changed, 2 insertions(+)
multipathd/main.c +1 -0
index 96ef01f..a08f1a5 100644
@@ -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], 

' '))

Signature · 6 lines
2.8.1.windows.1

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
#2 lore raw

Good,
Merged.

Quoted 66 lines · On Tue, Oct 11, 2016 at 8:42 AM, <[email protected]> wrote:

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

发件人: [email protected]
收件人: christophe varoqui <[email protected]>,
抄送: [email protected], [email protected], "tang.junhui" <
[email protected]>
日期: 2016/09/13 18:17
主题: [dm-devel] [PATCH] multipathd: uxsock_timeout should be
assigned by conf->uxsock_timeout
发件人: [email protected]
------------------------------

From: "tang.junhui" <[email protected]>

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.

---
multipathd/main.c | 2 ++

1 file changed, 2 insertions(+)
multipathd/main.c +1 -0
index 96ef01f..a08f1a5 100644
@@ -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':
multipathd/main.c +1 -0
@@ -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
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel