]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd806b5437b1d0c9f3252997f36ee5aa80e40ed4b
tree7df2aef0eaf670f4991c731a9c38ba73ac9031d7
parent2418ca485a2919c85d265a4aa9fed19e6449ceff
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