linux/net/appletalk
Eric Dumazet c564039fd8 net: sk_wmem_alloc has initial value of one, not zero
commit 2b85a34e91
(net: No more expensive sock_hold()/sock_put() on each tx)
changed initial sk_wmem_alloc value.

Some protocols check sk_wmem_alloc value to determine if a timer
must delay socket deallocation. We must take care of the sk_wmem_alloc
value being one instead of zero when no write allocations are pending.

Reported by Ingo Molnar, and full diagnostic from David Miller.

This patch introduces three helpers to get read/write allocations
and a followup patch will use these helpers to report correct
write allocations to user.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-06-17 04:31:25 -07:00
..
aarp.c appletalk: convert aarp to net_device_ops 2009-01-07 17:21:44 -08:00
atalk_proc.c proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
ddp.c net: sk_wmem_alloc has initial value of one, not zero 2009-06-17 04:31:25 -07:00
dev.c net: remove COMPAT_NET_DEV_OPS 2009-05-25 01:53:53 -07:00
Makefile
sysctl_net_atalk.c net: '&' redux 2008-11-03 18:21:05 -08:00