[lkml]   [2007]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH -rt 1/9] preempt rcu: check for underflow

    * Daniel Walker <> wrote:

    > + /*
    > + * If our rcu_read_lock_nesting went negative, likely
    > + * something is wrong..
    > + */
    > + WARN_ON(current->rcu_read_lock_nesting < 0);

    have you actually caught any rcu locking problem this way? Double
    unlocks should be caught by lockdep already, at a higher level.

    in any case i've added a slightly different form of this change to the
    -rt queue that will also check for counter overflows. But i'm not sure
    we want to litter the code with trivial checks like this, so i'm keeping
    it separate and if it does not trigger anything real i'll remove it.

    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: 2007-07-30 11:25    [W:0.032 / U:30.104 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site