diff options
author | sjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com> | 2011-05-13 02:44:00 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-15 17:45:54 -0400 |
commit | bd30ce4bc0b7dc859c1d1cba7ad87e08642418b0 (patch) | |
tree | d5648773052baf985db8290774fea4907e558257 /samples | |
parent | 0b1e9738deb30f4c35c0add43a52dcd0608b227e (diff) | |
download | linux-stable-bd30ce4bc0b7dc859c1d1cba7ad87e08642418b0.tar.gz linux-stable-bd30ce4bc0b7dc859c1d1cba7ad87e08642418b0.tar.bz2 linux-stable-bd30ce4bc0b7dc859c1d1cba7ad87e08642418b0.zip |
caif: Use RCU instead of spin-lock in caif_dev.c
RCU read_lock and refcount is used to protect in-flight packets.
Use RCU and counters to manage freeing lower part of the CAIF stack if
CAIF-link layer is removed. Old solution based on delaying removal of
device is removed.
When CAIF link layer goes down the use of CAIF link layer is disabled
(by calling caif_set_phy_state()), but removal and freeing of the
lower part of the CAIF stack is done when Link layer is unregistered.
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions