linux/drivers/net/ehea
David S. Miller 4bb073c0e3 net: Eliminate flush_scheduled_work() calls while RTNL is held.
If the RTNL is held when we invoke flush_scheduled_work() we could
deadlock.  One such case is linkwatch, it is a work struct which tries
to grab the RTNL semaphore.

The most common case are net driver ->stop() methods.  The
simplest conversion is to instead use cancel_{delayed_}work_sync()
explicitly on the various work struct the driver uses.

This is an OK transformation because these work structs are doing
things like resetting the chip, restarting link negotiation, and so
forth.  And if we're bringing down the device, we're about to turn the
chip off and reset it anways.  So if we cancel a pending work event,
that's fine here.

Some drivers were working around this deadlock by using a msleep()
polling loop of some sort, and those cases are converted to instead
use cancel_{delayed_}work_sync() as well.

Signed-off-by: David S. Miller <davem@davemloft.net>
2008-06-12 02:22:02 -07:00
..
Makefile [PATCH] ehea: IBM eHEA Ethernet Device Driver 2006-09-13 13:23:52 -04:00
ehea.h ehea: Add DLPAR memory remove support 2008-05-13 01:31:39 -04:00
ehea_ethtool.c ehea: fix ethtool checkpatch complaints 2008-02-03 04:25:56 -08:00
ehea_hcall.h [PATCH] ehea: IBM eHEA Ethernet Device Driver 2006-09-13 13:23:52 -04:00
ehea_hw.h ehea: fix ehea.h checkpatch complaints 2008-02-03 04:25:55 -08:00
ehea_main.c net: Eliminate flush_scheduled_work() calls while RTNL is held. 2008-06-12 02:22:02 -07:00
ehea_phyp.c ehea: fix phyp checkpatch complaints 2008-02-03 04:25:57 -08:00
ehea_phyp.h ehea: fix phyp checkpatch complaints 2008-02-03 04:25:57 -08:00
ehea_qmr.c ehea: Add DLPAR memory remove support 2008-05-13 01:31:39 -04:00
ehea_qmr.h ehea: fix qmr checkpatch complaints 2008-02-03 04:25:58 -08:00