* [Cluster-devel] [PATCH] dlm: fix a clerical error when set SCTP_NODELAY
@ 2018-05-02 2:37 Gang He
2018-05-02 14:58 ` Steven Whitehouse
0 siblings, 1 reply; 2+ messages in thread
From: Gang He @ 2018-05-02 2:37 UTC (permalink / raw)
To: cluster-devel.redhat.com
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>
---
fs/dlm/lowcomms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 5243989..8151252 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -1080,7 +1080,7 @@ static void sctp_connect_to_sock(struct connection *con)
log_print("connecting to %d", con->nodeid);
/* 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));
result = sock->ops->connect(sock, (struct sockaddr *)&daddr, addr_len,
--
1.8.5.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Cluster-devel] [PATCH] dlm: fix a clerical error when set SCTP_NODELAY
2018-05-02 2:37 [Cluster-devel] [PATCH] dlm: fix a clerical error when set SCTP_NODELAY Gang He
@ 2018-05-02 14:58 ` Steven Whitehouse
0 siblings, 0 replies; 2+ messages in thread
From: Steven Whitehouse @ 2018-05-02 14:58 UTC (permalink / raw)
To: cluster-devel.redhat.com
On 02/05/18 03:37, Gang He wrote:
> 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>
> ---
> fs/dlm/lowcomms.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
> index 5243989..8151252 100644
> --- a/fs/dlm/lowcomms.c
> +++ b/fs/dlm/lowcomms.c
> @@ -1080,7 +1080,7 @@ static void sctp_connect_to_sock(struct connection *con)
> log_print("connecting to %d", con->nodeid);
>
> /* 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));
>
> result = sock->ops->connect(sock, (struct sockaddr *)&daddr, addr_len,
Yes, that looks like a fairly obvious fix, so looks good to me,
Steve.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-02 14:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-02 2:37 [Cluster-devel] [PATCH] dlm: fix a clerical error when set SCTP_NODELAY Gang He
2018-05-02 14:58 ` Steven Whitehouse
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.