I am using the following API to kill a tasklet:
tasklet_kill();
While killing the tasklet, I have disabled local interrupts using spin_lock_irqsave
. Why does the kernel throws the following message(warning?):
Attempt to kill tasklet from interrupt
Is it not advisable to use tasklet_kill()
while holding a spin_lock?
if you take a look at the func itself you will find it has a call to yield, which can give up the cpu. but that's prohibited with interrupts disabled and/or a spin lock held.