Re: [tip:sched/urgent] sched: Teach might_sleep() about preemptible RCU

Frederic Weisbecker
2009-12-16T19:14:06Z

On Wed, Dec 16, 2009 at 07:57:32PM +0100, Frederic Weisbecker wrote:
> Looks like the problem is here:
>
> rcupdate.h:
>
> #if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU)
> #include <linux/rcutree.h>
> #elif defined(CONFIG_TINY_RCU)
> #include <linux/rcutiny.h>
>
> I guess it barfs in rcutiny configs.
>
> I should define these helpers in rcupdate.
>

Actually I'm going to define the rcu tiny off-case from rcutiny.h
It looks like rcupdate.h should really keep only the generic
bits.