<div dir="ltr"><div><div><div>Hi,<br><br></div>I see a warning,<br><br><font><span style="font-size:10pt">/qsdk/qca/src/linux/kernel/softirq.c:159
local_bh_enable_ip+0x5c/0xe0()</span></font><br><br><font><span style="font-size:10pt">spin_lock_bh. While dev_ioctl is called from user context, not sure<br>
why we have the warning <font>because of the f<font>ollowing reasons in softirq.<font>c : 159</font></font></font><br>
<br>
1. in_irqs - interrupt handler context (So we need to use spin_lock_irq_save )<br>
2. disabled_irqs - interrupts are disabled (spin_lock should be good enough ).</span></font><br><br></div>Can some one give me more thoughts, I can see that its not necessary to call spin_lock_bh<br>from softirq context, what are the other scenarios where this might be a problem or not<br>
necessary ? The above warning comes from dev_ioctl (user context), when a new<br></div>network interface is added.<br><br>thanks,<br>shafi<br></div>