skge: race with workq and RTNL
authorStephen Hemminger <shemminger@linux-foundation.org>
Fri, 16 Feb 2007 23:37:39 +0000 (15:37 -0800)
committerJeff Garzik <jeff@garzik.org>
Tue, 20 Feb 2007 16:18:13 +0000 (11:18 -0500)
If a workqueue function that needs RTNL is running when skge_down
is called then a deadlock is possible. Fix by only clearing the timer,
and handling the flush_scheduled_work on removal. This work queue is only
ever used for the old fiber based boards.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

No differences found