Bluetooth: Change l2cap chan_list to use RCU
authorGustavo F. Padovan <padovan@profusion.mobi>
Sat, 17 Dec 2011 12:56:45 +0000 (10:56 -0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Sun, 18 Dec 2011 19:07:57 +0000 (17:07 -0200)
commit3d57dc6806599ca7d389fc9410eefbc1a7dc32bc
treebcb1efa2cec7f2e12aff5a5d40b2115c3b738d38
parent03a001948166d966d0d580cddb8ae3a23f8b795b
Bluetooth: Change l2cap chan_list to use RCU

This list has much more reads than writes, so RCU makes senses here, also
it avoid deadlock against the socket lock.

Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c