can: convert protocol handling to RCU
authorOliver Hartkopp <socketcan@hartkopp.net>
Tue, 5 Apr 2011 08:01:16 +0000 (08:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2011 19:35:51 +0000 (12:35 -0700)
commit1ca050d909add6825224c015d8cec2425b3edf27
tree27a95196fbd913e0ae4ecc69132c40d787a90245
parent4c844d97d269a7ec4a6ba7d530aa876ac64dfb76
can: convert protocol handling to RCU

This patch removes spin_locks at CAN socket creation time by using RCU.

Inspired by the discussion with Kurt van Dijck and Eric Dumazet the RCU code
was partly derived from af_phonet.c

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/af_can.c