All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Caulfield <pcaulfie@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] dlm: Fix spin lock already unlocked bug
Date: Tue, 02 Jan 2007 14:18:08 +0000	[thread overview]
Message-ID: <459A69A0.5070003@redhat.com> (raw)

From the "how the hell did that get in there" collection.

I just noticed this message when testing some other changes I'd made to lowcomms (to use workqueues) but the problem seems to be in
the current git trees too. I'm amazed no-one has seen it.

   BUG: spinlock already unlocked on CPU#1, dlm_recoverd/16868

Please check this before committing it someone (everyone?), in case I'm hallucinating after all the christmas punch ;-)


Signed-Off-By: Patrick Caulfield <pcaulfie@redhat.com>


--- lowcomms-tcp.c	2007-01-02 13:51:40.000000000 +0000
+++ lowcomms-tcp.c.new	2007-01-02 14:01:16.000000000 +0000
@@ -709,6 +709,7 @@
 	if (!con)
 		return NULL;

+	spin_lock(&con->writequeue_lock);
 	e = list_entry(con->writequeue.prev, struct writequeue_entry, list);
 	if ((&e->list == &con->writequeue) ||
 	    (PAGE_CACHE_SIZE - e->end < len)) {
@@ -747,6 +748,7 @@
 	struct connection *con = e->con;
 	int users;

+	spin_lock(&con->writequeue_lock);
 	users = --e->users;
 	if (users)
 		goto out;



             reply	other threads:[~2007-01-02 14:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-02 14:18 Patrick Caulfield [this message]
2007-01-02 15:01 ` [Cluster-devel] [PATCH] dlm: Fix spin lock already unlocked bug Robert Peterson
2007-01-02 15:12 ` David Teigland
2007-01-02 17:08 ` Patrick Caulfield

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=459A69A0.5070003@redhat.com \
    --to=pcaulfie@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.