vxge: hotplug stall
authorJon Mason <jon.mason@exar.com>
Fri, 10 Dec 2010 14:03:00 +0000 (14:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Dec 2010 00:08:23 +0000 (16:08 -0800)
commit9c1638871671721e8f3693a0dfbb0e2e05b08742
tree476716914dc988ffe8f91435f2b25db05ef2896b
parent2e41f6449c561e6e3f572e11d0f2240bd51104db
vxge: hotplug stall

When hot-unplugging a vxge adapter while running, the driver's remove
routine prints warning and then stalls the calling thread.  This is due
to vxge_remove calling vxge_device_unregister to unregister the netdev
before calling flush_scheduled_work clear any pending work.  Swapping
the order of these two functions resolves the issue.

Signed-off-by: Jon Mason <jon.mason@exar.com>
Signed-off-by: Ram Vepa <ram.vepa@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxge/vxge-main.c