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:29:59 +0000 (12:29 -0400)
commitb26b0d1e8b1de83bbce81c8d119260ac91031ebd
treecc3986c52025d252c2a063053692595e60c80e13
parentd1015645dd535bbf10e52a3ef6d02ee0c3e0b267
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