]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: transform qdisc running bit into a seqcount
authorEric Dumazet <edumazet@google.com>
Mon, 6 Jun 2016 16:37:15 +0000 (09:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jun 2016 23:37:13 +0000 (16:37 -0700)
commit81cef05e15a3c07a1ab0ea01e4f5562934ac3498
treebc3cf06664da45bc0e6ce9b5165dba534ed11751
parent8d4622810cc974bd0d32d9bcdaaf9a4c27dcbd9c
net_sched: transform qdisc running bit into a seqcount

Instead of using a single bit (__QDISC___STATE_RUNNING)
in sch->__state, use a seqcount.

This adds lockdep support, but more importantly it will allow us
to sample qdisc/class statistics without having to grab qdisc root lock.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/ppp/ppp_generic.c
drivers/net/team/team.c
include/linux/netdevice.h
include/net/sch_generic.h
net/bluetooth/6lowpan.c
net/core/dev.c
net/ieee802154/6lowpan/core.c
net/l2tp/l2tp_eth.c
net/sched/sch_generic.c