]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commit208491d8f92e5aa129acb27e223e75d0173a3edd
treefaa36a58a552f2a4c36bdc362701e81d7e7d7261
parent8b5b46718113166b5f6bcdf40e67ea867461e209
skge: race with workq and RTNL

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>
drivers/net/skge.c