patch-2.3.4 linux/net/core/datagram.c
Next file: linux/net/core/dev.c
Previous file: linux/net/Makefile
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Mon May 31 22:07:43 1999
- Orig file:
v2.3.3/linux/net/core/datagram.c
- Orig date:
Fri May 14 18:55:30 1999
diff -u --recursive --new-file v2.3.3/linux/net/core/datagram.c linux/net/core/datagram.c
@@ -151,15 +151,15 @@
is reentearble (it is not) or this function
is called by interrupts.
- Protect it with global skb spinlock,
+ Protect it with skb queue spinlock,
though for now even this is overkill.
--ANK (980728)
*/
- spin_lock_irqsave(&skb_queue_lock, cpu_flags);
+ spin_lock_irqsave(&sk->receive_queue.lock, cpu_flags);
skb = skb_peek(&sk->receive_queue);
if(skb!=NULL)
atomic_inc(&skb->users);
- spin_unlock_irqrestore(&skb_queue_lock, cpu_flags);
+ spin_unlock_irqrestore(&sk->receive_queue.lock, cpu_flags);
} else
skb = skb_dequeue(&sk->receive_queue);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)