]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a7ab1286b8fdd0141bbdc1c850bbc0a72cb793a
tree23e8c8a9ef0ee10e9a06df0029b25f95bdffca6f
parent9e088bcfbde51e556f53507e731c8794f394273b
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