Re: [PATCH] rcu: Is it safe to enter an RCU read-side criticalsection?

From: Peter Zijlstra
Date: Mon Sep 09 2013 - 12:22:52 EST


On Mon, Sep 09, 2013 at 04:40:38PM +0200, Frederic Weisbecker wrote:
> > If the state migrates with a task from one CPU to another, it's a task
> > state.
>
> This applies to preempt_count as well.

This is in fact true. Its something I'd like to cure, but currently the
PREEMPT_ACTIVE state makes this so.

Hence the need to save/restore the per-cpu preempt state in the per-cpu
preempt_count patches.
--
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/