Andrew Morton wrote:
> On Tue, 24 Apr 2007 13:00:49 -0700 Jeremy Fitzhardinge <[email protected]> wrote:
>
>
>> Andrew Morton wrote:
>>
>>> Well, it _is_ mysterious.
>>>
>>> Did you try to locate the code which failed? I got lost in macros and
>>> include files, and gave up very very easily. Stop hiding, Ingo.
>>>
>>>
>> OK, I've managed to reproduce it. Removing the local_irq_save/restore
>> from sched_clock() makes it go away, as I'd expect (otherwise it would
>> really be magic).
>>
>
> erm, why do you expect that? A local_irq_save()/local_irq_restore() pair
> shouldn't be affecting anything?
>
Well, yes. I have no idea why it causes a problem. But other than
that, sched_clock does absolutely nothing which would affect lockdep state.
>> But given that it never seems to touch the softlockup
>> during testing, I have no idea what difference it makes...
>>
>
> To what softlockup are you referring, and what does that have to do with
> anything?
You dropped this patch, "Ignore stolen time in the softlockup watchdog"
because its presence triggers the lock tester errors. The only thing
this patch does is use sched_clock() rather than jiffies to measure
lockup time. It therefore appears, for some reason, that using
sched_clock() in the softlockup code is making the lock-test fail.
Since the lock test doesn't explicitly do any softlockup stuff, the
connection must be implicit via sched_lock - but how, I can't imagine.
Since sched_clock() itself looks perfectly OK, and the softlockup
watchdog seems fine too, I can only conclude its a bug in the lock
testing stuff. But I don't know what.
J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]