All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] dlm: bz#251179 Fix lowcomms socket closing
Date: Mon, 20 Aug 2007 15:56:11 +0100	[thread overview]
Message-ID: <1187621771.8765.917.camel@quoit> (raw)
In-Reply-To: <46C9A192.5000704@redhat.com>

Hi,

Now in the -nmw git tree. Thanks,

Steve.

On Mon, 2007-08-20 at 15:13 +0100, Patrick Caulfield wrote:
> This patch fixes the slight mess made in lowcomms closing by previous patches
> and fixes all sorts of DLM hangs.
> 
> Signed-Off-By: Patrick Caulfield <pcaulfie@redhat.com>
> 
> plain text document attachment (lowcomms-close-patch.stevew)
> --- gfs2-2.6-nmw/fs/dlm/lowcomms.c.orig	2007-08-20 15:05:48.000000000 +0100
> +++ gfs2-2.6-nmw/fs/dlm/lowcomms.c	2007-08-20 15:07:00.000000000 +0100
> @@ -334,18 +334,8 @@ static void close_connection(struct conn
>  		con->rx_page = NULL;
>  	}
>  
> -	/* If we are an 'othercon' then NULL the pointer to us
> -	   from the parent and tidy ourself up */
> -	if (test_bit(CF_IS_OTHERCON, &con->flags)) {
> -		struct connection *parent = __nodeid2con(con->nodeid, 0);
> -		parent->othercon = NULL;
> -		kmem_cache_free(con_cache, con);
> -	}
> -	else {
> -		/* Parent connections get reused */
> -		con->retries = 0;
> -		mutex_unlock(&con->sock_mutex);
> -	}
> +	con->retries = 0;
> +	mutex_unlock(&con->sock_mutex);
>  }
>  
>  /* We only send shutdown messages to nodes that are not part of the cluster */
> @@ -731,6 +721,8 @@ static int tcp_accept_from_sock(struct c
>  			INIT_WORK(&othercon->swork, process_send_sockets);
>  			INIT_WORK(&othercon->rwork, process_recv_sockets);
>  			set_bit(CF_IS_OTHERCON, &othercon->flags);
> +		}
> +		if (!othercon->sock) {
>  			newcon->othercon = othercon;
>  			othercon->sock = newsock;
>  			newsock->sk->sk_user_data = othercon;



      reply	other threads:[~2007-08-20 14:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-20 14:13 [Cluster-devel] [PATCH] dlm: bz#251179 Fix lowcomms socket closing Patrick Caulfield
2007-08-20 14:56 ` 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=1187621771.8765.917.camel@quoit \
    --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 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.