summaryrefslogtreecommitdiff
path: root/net/core/gen_estimator.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-08-14 02:18:38 +0400
committerDavid S. Miller <davem@davemloft.net>2008-08-14 02:18:38 +0400
commitb9a3b1102bc80b4044224494100f67de132d5448 (patch)
tree26d693207ad5c5e9ea79a2b21de48b1e409f628e /net/core/gen_estimator.c
parent26b284de54a5ca3dfbe2fd9a51ac1923e80085a2 (diff)
downloadlinux-b9a3b1102bc80b4044224494100f67de132d5448.tar.xz
pkt_sched: Fix queue quiescence testing in dev_deactivate().
Based upon discussions with Jarek P. and Herbert Xu. First, we're testing the wrong qdisc. We just reset the device queue qdiscs to &noop_qdisc and checking it's state is completely pointless here. We want to wait until the previous qdisc that was sitting at the ->qdisc pointer is not busy any more. And that would be ->qdisc_sleeping. Because of how we propagate the samples qdisc pointer down into qdisc_run and friends via per-cpu ->output_queue and netif_schedule, we have to wait also for the __QDISC_STATE_SCHED bit to clear as well. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/gen_estimator.c')
0 files changed, 0 insertions, 0 deletions