-
- Downloads
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>
Showing
- include/linux/netdevice.h 4 additions, 25 deletionsinclude/linux/netdevice.h
- include/net/sch_generic.h 15 additions, 6 deletionsinclude/net/sch_generic.h
- net/core/dev.c 49 additions, 2 deletionsnet/core/dev.c
- net/sched/sch_generic.c 2 additions, 2 deletionsnet/sched/sch_generic.c
- net/sched/sch_mqprio.c 4 additions, 2 deletionsnet/sched/sch_mqprio.c
- net/sched/sch_teql.c 8 additions, 5 deletionsnet/sched/sch_teql.c
Loading
Please register or sign in to comment