]> err.no Git - linux-2.6/commit
pkt_sched: Fix locking of qdisc_root with qdisc_root_sleeping_lock()
authorJarek Poplawski <jarkao2@gmail.com>
Fri, 29 Aug 2008 21:21:52 +0000 (14:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Aug 2008 21:27:52 +0000 (14:27 -0700)
commit102396ae65108b026e4e1868e30fa013f45a169e
tree1164f9020a3fa47460a2ab72e07c3308be2290ee
parent3cc76caa98b092a8fb3e7b4303c70f847db0651f
pkt_sched: Fix locking of qdisc_root with qdisc_root_sleeping_lock()

Use qdisc_root_sleeping_lock() instead of qdisc_root_lock() where
appropriate. The only difference is while dev is deactivated, when
currently we can use a sleeping qdisc with the lock of noop_qdisc.
This shouldn't be dangerous since after deactivation root lock could
be used only by gen_estimator code, but looks wrong anyway.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c
net/sched/cls_route.c
net/sched/sch_api.c
net/sched/sch_cbq.c
net/sched/sch_htb.c
net/sched/sch_netem.c
net/sched/sch_teql.c