]> git.baikalelectronics.ru Git - kernel.git/commit
net: qdisc: use rcu prefix and silence sparse warnings
authorJohn Fastabend <john.fastabend@gmail.com>
Sat, 13 Sep 2014 03:04:52 +0000 (20:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Sep 2014 16:30:25 +0000 (12:30 -0400)
commit7e5ab42045769f0c2151a318a82045bfac7a940f
treecc3986c52025d252c2a063053692595e60c80e13
parentc7c33e482d7fff160c154c1b0b0f91ab0999ce28
net: qdisc: use rcu prefix and silence sparse warnings

Add __rcu notation to qdisc handling by doing this we can make
smatch output more legible. And anyways some of the cases should
be using rcu_dereference() see qdisc_all_tx_empty(),
qdisc_tx_chainging(), and so on.

Also *wake_queue() API is commonly called from driver timer routines
without rcu lock or rtnl lock. So I added rcu_read_lock() blocks
around netif_wake_subqueue and netif_tx_wake_queue.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/sch_generic.h
net/core/dev.c
net/sched/sch_generic.c
net/sched/sch_mqprio.c
net/sched/sch_teql.c