summaryrefslogtreecommitdiffstats
path: root/net/caif/cffrml.c
diff options
context:
space:
mode:
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>2011-05-13 04:43:59 +0200
committerDavid S. Miller <davem@davemloft.net>2011-05-15 23:45:54 +0200
commit0b1e9738deb30f4c35c0add43a52dcd0608b227e (patch)
treeb629d3d0db7fead50ab4256f4ace6d29e7aa980c /net/caif/cffrml.c
parentnet: ping: small changes (diff)
downloadlinux-0b1e9738deb30f4c35c0add43a52dcd0608b227e.tar.xz
linux-0b1e9738deb30f4c35c0add43a52dcd0608b227e.zip
caif: Use rcu_read_lock in CAIF mux layer.
Replace spin_lock with rcu_read_lock when accessing lists to layers and cache. While packets are in flight rcu_read_lock should not be held, instead ref-counters are used in combination with RCU. Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/cffrml.c')
-rw-r--r--net/caif/cffrml.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/caif/cffrml.c b/net/caif/cffrml.c
index 2423fed8e26c..f4b88924f83a 100644
--- a/net/caif/cffrml.c
+++ b/net/caif/cffrml.c
@@ -145,3 +145,11 @@ static void cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
if (layr->up->ctrlcmd)
layr->up->ctrlcmd(layr->up, ctrl, layr->id);
}
+
+void cffrml_put(struct cflayer *layr)
+{
+}
+
+void cffrml_hold(struct cflayer *layr)
+{
+}