]> git.baikalelectronics.ru Git - kernel.git/commit
pkt_sched: Simplify dev_deactivate() polling loop.
authorDavid S. Miller <davem@davemloft.net>
Mon, 18 Aug 2008 04:58:07 +0000 (21:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Aug 2008 04:58:07 +0000 (21:58 -0700)
commitf0d4f9dc32c7d4f3ce625bf3c7c60b33f836e03f
tree7c39163199086fedc39adad6c733526658d4bc86
parent3b9bdd7bba4ebfbb760bd26fdbf9a05cec6d4195
pkt_sched: Simplify dev_deactivate() polling loop.

The condition under which the previous qdisc has no more references
after we've attached &noop_qdisc is that both RUNNING and SCHED
are both seen clear while holding the root lock.

So just make specifically that check in the polling loop, instead
of this overly complex "check without then check with lock held"
sequence.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c