patch-2.1.119 linux/net/ipv6/tcp_ipv6.c
Next file: linux/net/ipv6/udp.c
Previous file: linux/net/ipv6/raw.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Wed Aug 26 15:56:01 1998
- Orig file:
v2.1.118/linux/net/ipv6/tcp_ipv6.c
- Orig date:
Tue Jun 23 10:01:31 1998
diff -u --recursive --new-file v2.1.118/linux/net/ipv6/tcp_ipv6.c linux/net/ipv6/tcp_ipv6.c
@@ -617,7 +617,7 @@
*/
sk->mtu = sk->dst_cache->pmtu;
}
- if (sk->sock_readers) { /* remove later */
+ if (atomic_read(&sk->sock_readers)) { /* remove later */
printk(KERN_DEBUG "tcp_v6_err: pmtu disc: socket locked.\n");
return;
}
@@ -631,7 +631,7 @@
struct open_request *req, *prev;
struct ipv6hdr hd;
case TCP_LISTEN:
- if (sk->sock_readers)
+ if (atomic_read(&sk->sock_readers))
return;
/* Grrrr - fix this later. */
@@ -1178,7 +1178,7 @@
if(sk->state == TCP_TIME_WAIT)
goto do_time_wait;
- if (!sk->sock_readers)
+ if (!atomic_read(&sk->sock_readers))
return tcp_v6_do_rcv(sk, skb);
__skb_queue_tail(&sk->back_log, skb);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov