]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd5793810a07d04563996fe9778970167bbc53be8
tree27a95196fbd913e0ae4ecc69132c40d787a90245
parent6d6c41e88f09ad0808aa1c05b5035b3568c041da
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