Help with 2.6.10 concurrency issue
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · martin rogers
Problem is, the function writeList can be called from a H/W intr, and a workqueue (and that intr could of course happen while either the workqueue or the tasklet is running, right?).
If I use
spin_lock_irqsavein writeList, it protects against the intr but not the tasklet.
Yes, it protects against the tasklet as well. Disabling interrupts also implicity disables BH execution (tasklets).
If I use spin_lock_bh, I don't get protection
Quoted 5 lines
from the intr I think; plus, I get :
Badness in
local_bh_enableatkernel/softirq.c:142when the intr runs (what does this mean?).
It means you're enabling BHs when interrupts are disabled, which doesn't make any sense. You can't use spin_lock_bh/spin_unlock_bh when interrupts are disabled.
Signature · 3 lines
Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [email protected] Home Page: http://www.roberthancock.com/