On Tue, 16 Jan 2007 00:58:58 +0530
Dipankar Sarma <[EMAIL PROTECTED]> wrote:

> +/*
> + * Wait for CPUs to acknowledge the flip.
> + */
> +static int rcu_try_flip_waitack(int flipctr)
> +{
> +     int cpu;
> +
> +     for_each_possible_cpu(cpu)
> +             if (per_cpu(rcu_flip_flag, cpu) != RCU_FLIP_SEEN) 
> +                     return 1;
> +
> +     /*
> +      * Make sure our checks above don't bleed into subsequent
> +      * waiting for the sum of the counters to reach zero.
> +      */
> +     smp_mb();
> +     return 0;
> +}

Confused.  If some of the possible cpus aren't online, doesn't the 
state machine get stuck??
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to