sched: replace __QDISC_STATE_RUNNING bit with a spin lock
authorPaolo Abeni <pabeni@redhat.com>
Tue, 15 May 2018 14:24:36 +0000 (16:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 May 2018 16:46:54 +0000 (12:46 -0400)
commit96009c7d500efdd5534e83b2e3eb2c58d4b137ae
tree7df2aef0eaf670f4991c731a9c38ba73ac9031d7
parentb9f672af148bf7a08a6031743156faffd58dbc7e
sched: replace __QDISC_STATE_RUNNING bit with a spin lock

So that we can use lockdep on it.
The newly introduced sequence lock has the same scope of busylock,
so it shares the same lockdep annotation, but it's only used for
NOLOCK qdiscs.

With this changeset we acquire such lock in the control path around
flushing operation (qdisc reset), to allow more NOLOCK qdisc perf
improvement in the next patch.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/sch_generic.c