patch-2.1.119 linux/net/ipv4/timer.c

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

diff -u --recursive --new-file v2.1.118/linux/net/ipv4/timer.c linux/net/ipv4/timer.c
@@ -73,7 +73,7 @@
 	int why = sk->timeout;
 
 	/* Only process if socket is not in use. */
-	if (sk->sock_readers) {
+	if (atomic_read(&sk->sock_readers)) {
 		sk->timer.expires = jiffies+HZ;
 		add_timer(&sk->timer);
 		return;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov