• David S. Miller's avatar
    pkt_sched: Don't hold qdisc lock over qdisc_destroy(). · 4d8863a2
    David S. Miller authored
    Based upon reports by Denys Fedoryshchenko, and feedback
    and help from Jarek Poplawski and Herbert Xu.
    
    We always either:
    
    1) Never made an external reference to this qdisc.
    
    or
    
    2) Did a dev_deactivate() which purged all asynchronous
       references.
    
    So do not lock the qdisc when we call qdisc_destroy(),
    it's illegal anyways as when we drop the lock this is
    free'd memory.
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4d8863a2
sch_generic.c 16.5 KB