linux-IllusionX/net
Herbert Xu 96c3602343 [NETLINK]: cb_lock does not needs ref count on sk
Here is a little optimisation for the cb_lock used by netlink_dump.
While fixing that race earlier, I noticed that the reference count
held by cb_lock is completely useless.  The reason is that in order
to obtain the protection of the reference count, you have to take
the cb_lock.  But the only way to take the cb_lock is through
dereferencing the socket.

That is, you must already possess a reference count on the socket
before you can take advantage of the reference count held by cb_lock.
As a corollary, we can remve the reference count held by the cb_lock.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-05-03 14:43:27 -07:00
..
802
8021q [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
appletalk
atm [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
ax25
bluetooth
bridge
core [RTNETLINK] Cleanup rtnetlink_link tables 2005-05-03 14:29:39 -07:00
decnet [RTNETLINK] Cleanup rtnetlink_link tables 2005-05-03 14:29:39 -07:00
econet
ethernet
ipv4 [TCP]: Optimize check in port-allocation code. 2005-05-03 14:36:08 -07:00
ipv6 [TCP]: Optimize check in port-allocation code, v6 version. 2005-05-03 14:36:45 -07:00
ipx
irda
key
lapb
llc
netlink [NETLINK]: cb_lock does not needs ref count on sk 2005-05-03 14:43:27 -07:00
netrom
packet
rose
rxrpc
sched [PKT_SCHED]: HTB: Drop packet when direct queue is full 2005-05-03 14:39:33 -07:00
sctp
sunrpc [PATCH] DocBook: changes and extensions to the kernel documentation 2005-05-01 08:59:25 -07:00
unix
wanrouter [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
x25
xfrm [XFRM]: Cleanup xfrm_msg_min and xfrm_dispatch 2005-05-03 14:26:40 -07:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE