be2net: Schedule/Destroy worker thread in probe()/remove() rather than open()/close()
authorSomnath Kotur <somnath.kotur@emulex.com>
Mon, 25 Oct 2010 23:01:03 +0000 (23:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2010 18:37:30 +0000 (11:37 -0700)
commitf203af7088cad0845ee128bb736bd372158c3e22
tree23e8c8a9ef0ee10e9a06df0029b25f95bdffca6f
parent853dc2e03ddd0c49885ed55c48755d2b1073122a
be2net: Schedule/Destroy worker thread in probe()/remove() rather than open()/close()

When async mcc compls are rcvd on an i/f that is down (and so interrupts are disabled)
they just lie unprocessed in the compl queue.The compl queue can eventually get filled
up and cause the BE to lock up.The fix is to use be_worker to reap mcc compls when the
i/f is down.be_worker is now launched in be_probe() and canceled in be_remove().

Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c