Regarding wrong usage of spin_lock_bh
shafi.kernel at gmail.com
Thu Aug 8 03:31:08 EDT 2013
I see a warning,
spin_lock_bh. While dev_ioctl is called from user context, not sure
why we have the warning because of the following reasons in softirq.c : 159
1. in_irqs - interrupt handler context (So we need to use
2. disabled_irqs - interrupts are disabled (spin_lock should be good
Can some one give me more thoughts, I can see that its not necessary to
from softirq context, what are the other scenarios where this might be a
problem or not
necessary ? The above warning comes from dev_ioctl (user context), when a
network interface is added.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kernelnewbies