dlm: fix a clerical error when set SCTP_NODELAY
There is a clerical error when turn off Nagle's algorithm in sctp_connect_to_sock() function, this results in turn off Nagle's algorithm failure. After this correction, DLM performance will be improved obviously when using SCTP procotol. Signed-off-by: Gang He <ghe@suse.com> Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
Родитель
6da6c0db53
Коммит
b09c603ca4
|
@ -1080,7 +1080,7 @@ static void sctp_connect_to_sock(struct connection *con)
|
||||||
log_print("connecting to %d", con->nodeid);
|
log_print("connecting to %d", con->nodeid);
|
||||||
|
|
||||||
/* Turn off Nagle's algorithm */
|
/* Turn off Nagle's algorithm */
|
||||||
kernel_setsockopt(sock, SOL_TCP, TCP_NODELAY, (char *)&one,
|
kernel_setsockopt(sock, SOL_SCTP, SCTP_NODELAY, (char *)&one,
|
||||||
sizeof(one));
|
sizeof(one));
|
||||||
|
|
||||||
result = sock->ops->connect(sock, (struct sockaddr *)&daddr, addr_len,
|
result = sock->ops->connect(sock, (struct sockaddr *)&daddr, addr_len,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче