]> git.baikalelectronics.ru Git - kernel.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)
commit3b3cdf6cba1e850040fcc907c12e7e37b15f7c95
treefaa36a58a552f2a4c36bdc362701e81d7e7d7261
parent7c18079b11e4d44f7bec0f0da59bbe63e85fb73d
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