kernel-fxtec-pro1x/net/llc
Octavian Purdila b76f5a8427 llc: convert the socket list to RCU locking
For the reclamation phase we use the SLAB_DESTROY_BY_RCU mechanism,
which require some extra checks in the lookup code:

a) If the current socket was released, reallocated & inserted in
another list it will short circuit the iteration for the current list,
thus we need to restart the lookup.

b) If the current socket was released, reallocated & inserted in the
same list we just need to recheck it matches the look-up criteria and
if not we can skip to the next element.

In this case there is no need to restart the lookup, since sockets are
inserted at the start of the list and the worst that will happen is
that we will iterate throught some of the list elements more then
once.

Note that the /proc and multicast delivery was not yet converted to
RCU, it still uses spinlocks for protection.

Signed-off-by: Octavian Purdila <opurdila@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-12-26 20:41:43 -08:00
..
af_llc.c llc: convert the socket list to RCU locking 2009-12-26 20:41:43 -08:00
Kconfig
llc_c_ac.c
llc_c_ev.c
llc_c_st.c
llc_conn.c llc: convert the socket list to RCU locking 2009-12-26 20:41:43 -08:00
llc_core.c llc: convert the socket list to RCU locking 2009-12-26 20:41:43 -08:00
llc_if.c
llc_input.c
llc_output.c llc: use dev_hard_header 2009-12-26 20:38:23 -08:00
llc_pdu.c
llc_proc.c llc: convert the socket list to RCU locking 2009-12-26 20:41:43 -08:00
llc_s_ac.c
llc_s_ev.c
llc_s_st.c
llc_sap.c llc: convert the socket list to RCU locking 2009-12-26 20:41:43 -08:00
llc_station.c
Makefile
sysctl_net_llc.c sysctl net: Remove unused binary sysctl code 2009-11-12 02:05:06 -08:00