netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: ralf@linux-mips.org
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org, linux-hams@vger.kernel.org
Subject: [PATCH 1/3] Remove ourselves from waitqueue when receiving a signal
Date: Sun, 11 Mar 2007 22:53:20 +0000	[thread overview]
Message-ID: <20070311225739.679006723@denk.linux-mips.net> (raw)
In-Reply-To: 20070311225319.673076841@denk.linux-mips.net

[-- Attachment #1: rose-remove-from-wait-queue.patch --]
[-- Type: text/plain, Size: 533 bytes --]

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

 net/rose/af_rose.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-net/net/rose/af_rose.c
===================================================================
--- linux-net.orig/net/rose/af_rose.c
+++ linux-net/net/rose/af_rose.c
@@ -877,6 +877,8 @@ static int rose_accept(struct socket *so
 			lock_sock(sk);
 			continue;
 		}
+		current->state = TASK_RUNNING;
+		remove_wait_queue(sk->sk_sleep, &wait);
 		return -ERESTARTSYS;
 	}
 	current->state = TASK_RUNNING;

-- 


  reply	other threads:[~2007-03-11 23:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-11 22:53 [PATCH 0/3] AX.25, NETROM and ROSE fixes and cleanups ralf
2007-03-11 22:53 ` ralf [this message]
2007-03-12 22:53   ` [PATCH 1/3] Remove ourselves from waitqueue when receiving a signal David Miller
2007-03-11 22:53 ` [PATCH 2/3] Socket locking is a great invention ralf
2007-03-12 22:53   ` David Miller
2007-03-11 22:53 ` [PATCH 3/3] Convert to use modern wait queue API ralf
2007-03-12 22:54   ` David Miller
2007-04-20 23:07   ` David Miller

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=20070311225739.679006723@denk.linux-mips.net \
    --to=ralf@linux-mips.org \
    --cc=davem@davemloft.net \
    --cc=linux-hams@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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).