commit | 1ca050d909add6825224c015d8cec2425b3edf27 | [log] [tgz] |
---|---|---|
author | Oliver Hartkopp <socketcan@hartkopp.net> | Tue Apr 05 08:01:16 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 06 12:35:51 2011 -0700 |
tree | 27a95196fbd913e0ae4ecc69132c40d787a90245 | |
parent | 4c844d97d269a7ec4a6ba7d530aa876ac64dfb76 [diff] |
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>