]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ibmveth: lost IRQ while closing/opening device leads to service loss
authorRobert Jennings <rcj@linux.vnet.ibm.com>
Fri, 16 Jul 2010 04:57:25 +0000 (04:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jul 2010 20:03:23 +0000 (13:03 -0700)
commitee2e6114de3bdb1c34f3910b690f990483e981ab
treea6b4de8355b31824103e24dc81bc0515c08d99b0
parent0f6142fa96a4ce799ccaa4cdb38fc4a715eb9d35
ibmveth: lost IRQ while closing/opening device leads to service loss

The order of freeing the IRQ and freeing the device in firmware
in ibmveth_close can cause the adapter to become unusable after a
subsequent ibmveth_open.  Only a reboot of the OS will make the
network device usable again. This is seen when cycling the adapter
up and down while there is network activity.

There is a window where an IRQ will be left unserviced (H_EOI will not
be called).  The solution is to make a VIO_IRQ_DISABLE h_call, free the
device with firmware, and then call free_irq.

Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ibmveth.c