From: Jarek Poplawski Date: Thu, 21 Aug 2008 12:11:14 +0000 (-0700) Subject: pkt_sched: Fix qdisc_watchdog() vs. dev_deactivate() race X-Git-Tag: v2.6.27-rc5~42^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2540e0511ea17e25831be543cdf9381e6209950d;p=pandora-kernel.git pkt_sched: Fix qdisc_watchdog() vs. dev_deactivate() race dev_deactivate() can skip rescheduling of a qdisc by qdisc_watchdog() or other timer calling netif_schedule() after dev_queue_deactivate(). We prevent this checking aliveness before scheduling the timer. Since during deactivation the root qdisc is available only as qdisc_sleeping additional accessor qdisc_root_sleeping() is created. With feedback from Herbert Xu Signed-off-by: Jarek Poplawski Signed-off-by: David S. Miller --- Reading git-diff-tree failed