]> 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)
commit4e589b84eac82ee6abaa5779bf5d88dc1caa9091
tree7df2aef0eaf670f4991c731a9c38ba73ac9031d7
parent155a3ffab4f3c961ec722f65334ae10ad498c15c
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