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)
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>

No differences found