patch-2.3.16 linux/net/ipv4/tcp_ipv4.c

Next file: linux/net/ipv4/tcp_timer.c
Previous file: linux/net/ipv4/tcp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/net/ipv4/tcp_ipv4.c linux/net/ipv4/tcp_ipv4.c
@@ -5,7 +5,7 @@
  *
  *		Implementation of the Transmission Control Protocol(TCP).
  *
- * Version:	$Id: tcp_ipv4.c,v 1.186 1999/08/21 21:46:29 davem Exp $
+ * Version:	$Id: tcp_ipv4.c,v 1.187 1999/08/31 07:03:48 davem Exp $
  *
  *		IPv4 specific functions
  *
@@ -412,16 +412,16 @@
 		DECLARE_WAITQUEUE(wait, current);
 
 		add_wait_queue(&tcp_lhash_wait, &wait);
-		do {
-			current->state = TASK_UNINTERRUPTIBLE;
+		for (;;) {
+			set_current_state(TASK_UNINTERRUPTIBLE);
 			if (atomic_read(&tcp_lhash_users) == 0)
 				break;
 			write_unlock_bh(&tcp_lhash_lock);
 			schedule();
 			write_lock_bh(&tcp_lhash_lock);
-		} while (atomic_read(&tcp_lhash_users));
+		}
 
-		current->state = TASK_RUNNING;
+		__set_current_state(TASK_RUNNING);
 		remove_wait_queue(&tcp_lhash_wait, &wait);
 	}
 }
@@ -2222,7 +2222,7 @@
 
 
 
-__initfunc(void tcp_v4_init(struct net_proto_family *ops))
+void __init tcp_v4_init(struct net_proto_family *ops)
 {
 	int err;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)