lkml.org 
[lkml]   [2015]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: lockdep warning: threadirqs and preemptoff tracer
On 05/26/2015 02:32 PM, Steven Rostedt wrote:
> Daniel Wagner <daniel.wagner@bmw-carit.de> wrote:
>> On 05/20/2015 10:46 AM, Daniel Wagner wrote:
>> I starred for a while at the code and saw the comment in
>> __local_bh_disable_ip():
>>
>> /*
>> * The preempt tracer hooks into preempt_count_add and will break
>> * lockdep because it calls back into lockdep after SOFTIRQ_OFFSET
>> * is set and before current->softirq_enabled is cleared.
>> * We must manually increment preempt_count here and manually
>> * call the trace_preempt_off later.
>> */
>>
>> >From this I figured this might be the same problem just in the
>> enable path. The below patch made the lockdep warning disappear.
>> Though I am not sure what I breaking with this.
>
> Don't you want to modify __local_bh_enable_ip()?

__do_softirq() calls __local_bh_disable_ip() and __local_bh_enable() and
not __local_bh_enable_ip(). I have no clue why this is done this way.
Need to look into the history.


\
 
 \ /
  Last update: 2015-05-26 15:21    [W:2.094 / U:1.516 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site