简体   繁体   中英

Killing a tasklet while holdiing spin_lock_irqsave

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM