]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ozwpan: use tasklet_kill in device remove/release process
authorXiaotian Feng <xtfeng@gmail.com>
Wed, 31 Oct 2012 10:56:48 +0000 (18:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 22:14:41 +0000 (15:14 -0700)
commitcd87978a47dcd4992c970db1a3091a7e8ebdab56
treed4d18ce0a520b1549685442ba8078026f2350b5e
parentd84ef81ac090f6bd6fdeaac4218fe42427ac2838
staging: ozwpan: use tasklet_kill in device remove/release process

Some driver uses tasklet_disable in device remove/release process,
tasklet_disable will inc tasklet->count and return. If the tasklet
is not handled yet under some softirq pressure, the tasklet will be
placed on the tasklet_vec, never have a chance to be excuted. This might
lead to a heavy loaded ksoftirqd, wakeup with pending_softirq, but
tasklet is disabled. tasklet_kill should be used in this case.

Signed-off-by: Xiaotian Feng <dannyfeng@tencent.com>
Cc: Rupesh Gujare <rgujare@ozmodevices.com>
Cc: Chris Kelly <ckelly@ozmodevices.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozhcd.c