Re: [PATCH RFC tip/core/rcu 1/2] rcu: suppress RCU lockdep warningsduring early boot

From: Ingo Molnar
Date: Tue Mar 02 2010 - 07:21:37 EST



* Paul E. McKenney <paulmck@xxxxxxxxxxxxxxxxxx> wrote:

> + if (!rcu_scheduler_active || !debug_locks)
> + return 1;
> + return lock_is_held(&rcu_lock_map);

> + if (!rcu_scheduler_active || !debug_locks)
> + return 1;
> + return lock_is_held(&rcu_bh_lock_map);

i guess there could be a common helper here?

Also, could we clear rcu_scheduler_active when we clear debug_locks? That way
only a single test is needed, a generic 'is lock debugging active'.

(Which test should probably be unlikely() as well?)

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/