patch-2.1.34 linux/net/rose/rose_timer.c
Next file: linux/net/sunrpc/pmap_clnt.c
Previous file: linux/net/rose/af_rose.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Mon Apr 14 09:31:10 1997
- Orig file:
v2.1.33/linux/net/rose/rose_timer.c
- Orig date:
Thu Mar 27 14:40:18 1997
diff -u --recursive --new-file v2.1.33/linux/net/rose/rose_timer.c linux/net/rose/rose_timer.c
@@ -85,7 +85,8 @@
/*
* Check for the state of the receive buffer.
*/
- if (sk->rmem_alloc < (sk->rcvbuf / 2) && (sk->protinfo.rose->condition & ROSE_COND_OWN_RX_BUSY)) {
+ if (atomic_read(&sk->rmem_alloc) < (sk->rcvbuf / 2) &&
+ (sk->protinfo.rose->condition & ROSE_COND_OWN_RX_BUSY)) {
sk->protinfo.rose->condition &= ~ROSE_COND_OWN_RX_BUSY;
sk->protinfo.rose->condition &= ~ROSE_COND_ACK_PENDING;
sk->protinfo.rose->vl = sk->protinfo.rose->vr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov