diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-06-02 14:23:51 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-02 14:23:51 +0400 |
commit | bc135b23d01acf7ee926aaf75b0020c86d3869f9 (patch) | |
tree | 29b338a0c54c00880720d808f2fede7c605f516d /net/sched | |
parent | 9f26f547a587ce9015ffe495d2af604580b4b784 (diff) | |
download | linux-bc135b23d01acf7ee926aaf75b0020c86d3869f9.tar.xz |
net: Define accessors to manipulate QDISC_STATE_RUNNING
Define three helpers to manipulate QDISC_STATE_RUNNIG flag, that a
second patch will move on another location.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index bd1892fe4b21..37b86eab6779 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -205,7 +205,7 @@ void __qdisc_run(struct Qdisc *q) } } - clear_bit(__QDISC_STATE_RUNNING, &q->state); + qdisc_run_end(q); } unsigned long dev_trans_start(struct net_device *dev) @@ -797,7 +797,7 @@ static bool some_qdisc_is_busy(struct net_device *dev) spin_lock_bh(root_lock); - val = (test_bit(__QDISC_STATE_RUNNING, &q->state) || + val = (qdisc_is_running(q) || test_bit(__QDISC_STATE_SCHED, &q->state)); spin_unlock_bh(root_lock); |