Re: [PATCH] sched: RCU-protect __set_task_cpu() in set_task_cpu()

From: Peter Zijlstra
Date: Mon Jun 06 2011 - 09:43:38 EST


On Sun, 2011-06-05 at 21:12 +0200, Oleg Nesterov wrote:
>
> WARN_ON_ONCE(debug_locks && !lockdep_is_held(p->on_rq ?
> &task_rq(p)->lock : &p->pi_lock))
>
> Not that I really suggest to change this WARN_ON(), I am just trying
> to recall the new rules.

I actually like that, so I tried it, we need to clean up some of the
fork() path hacks but it should be possible. Will try and remember for
the next release or so.
--
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/