[lkml]   [2011]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [1/4] rcu: Detect uses of rcu read side in extended quiescent states
    On Mon, Jun 6, 2011 at 6:36 PM, Frederic Weisbecker <> wrote:
    > Ok but that only improves the rcu debugging. What about instead improving
    > might_sleep() to also work in !PREEMPT, so that it profits to any detection
    > of forbidden sleeping (sleep inside spinlock, preempt_disable, might_fault, etc...)
    > We could define a new config:
    > config PREEMPT_COUNT
    >       default PREEMPT || DEBUG_SPINLOCK_SLEEP
    > and build preempt_disable()/preempt_enable() on top of that instead
    > of using CONFIG_PREEMPT directly.
    > Does that look sane?

    Yes, I think this would be helpful.

    I actually sent out a patch for that about a year ago - message title
    However that code has rotted since, and my attempt at a trivial port
    ended up spewing complaints in dmesg at boot time...

    Michel "Walken" Lespinasse
    A program is never fully debugged until the last user dies.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2011-06-10 11:01    [W:0.023 / U:7.672 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site