diff options
| author | Jarek Poplawski <[email protected]> | 2008-08-22 10:24:05 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2008-08-22 10:31:39 +0000 |
| commit | f6e0b239a2657ea8cb67f0d83d0bfdbfd19a481b (patch) | |
| tree | 9d6e3c97a81869fde3958cdbcf431ee3739f9b2c /lib/debugobjects.c | |
| parent | pkt_sched: Fix qdisc_watchdog() vs. dev_deactivate() race (diff) | |
| download | kernel-f6e0b239a2657ea8cb67f0d83d0bfdbfd19a481b.tar.gz kernel-f6e0b239a2657ea8cb67f0d83d0bfdbfd19a481b.zip | |
pkt_sched: Fix qdisc list locking
Since some qdiscs call qdisc_tree_decrease_qlen() (so qdisc_lookup())
without rtnl_lock(), adding and deleting from a qdisc list needs
additional locking. This patch adds global spinlock qdisc_list_lock
and wrapper functions for modifying the list. It is considered as a
temporary solution until hfsc_dequeue(), netem_dequeue() and
tbf_dequeue() (or qdisc_tree_decrease_qlen()) are redone.
With feedback from Herbert Xu and David S. Miller.
Signed-off-by: Jarek Poplawski <[email protected]>
Acked-by: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
