netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [AX25] circular locking with AX25 connection timeout
@ 2007-12-14 22:29 Bernard Pidoux
  2007-12-15 10:18 ` [PATCH take2] " Jarek Poplawski
  0 siblings, 1 reply; 9+ messages in thread
From: Bernard Pidoux @ 2007-12-14 22:29 UTC (permalink / raw)
  To: David Miller; +Cc: Jarek Poplawski, Ralf Baechle DL5RB, Linux Netdev List

[-- Attachment #1: Type: text/plain, Size: 136 bytes --]

Hi,

This patch cancels a circular locking conflict that appeared with a 
timeout of an AX25 connection.

signed off by Jarek Poplawski

[-- Attachment #2: rose-2.6.24-rc5.patch3 --]
[-- Type: text/plain, Size: 472 bytes --]

--- linux-2.6.24-rc5/net/ax25/ax25_subr.c	2007-12-11 04:48:43.000000000 +0100
+++ b/net/ax25/ax25_subr.c	2007-12-14 14:30:02.000000000 +0100
@@ -279,6 +279,7 @@
 	ax25_link_failed(ax25, reason);
 
 	if (ax25->sk != NULL) {
+		local_bh_disable();
 		bh_lock_sock(ax25->sk);
 		ax25->sk->sk_state     = TCP_CLOSE;
 		ax25->sk->sk_err       = reason;
@@ -288,5 +289,6 @@
 			sock_set_flag(ax25->sk, SOCK_DEAD);
 		}
 		bh_unlock_sock(ax25->sk);
+		local_bh_enable(); 
 	}
 }

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-12-18  6:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-14 22:29 [PATCH] [AX25] circular locking with AX25 connection timeout Bernard Pidoux
2007-12-15 10:18 ` [PATCH take2] " Jarek Poplawski
2007-12-16 21:17   ` [BUG] lack of /proc/net/ax25 with 2.6.24-rc5 Bernard Pidoux
2007-12-17 21:56     ` Rafael J. Wysocki
2007-12-17 22:44     ` [PATCH] sysctl: Fix ax25 checks Eric W. Biederman
2007-12-18  0:08       ` Bernard Pidoux
2007-12-18  0:16         ` Eric W. Biederman
2007-12-18  6:59       ` David Miller
2007-12-16 22:02   ` [PATCH take2] [AX25] circular locking with AX25 connection timeout David Miller

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).