cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] dlm: fix a clerical error when set SCTP_NODELAY
Date: Wed, 2 May 2018 15:58:24 +0100	[thread overview]
Message-ID: <635d30b5-878d-977f-502f-6b0225952c81@redhat.com> (raw)
In-Reply-To: <1525228668-3507-1-git-send-email-ghe@suse.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.



      reply	other threads:[~2018-05-02 14:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=635d30b5-878d-977f-502f-6b0225952c81@redhat.com \
    --to=swhiteho@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).