lkml.org 
[lkml]   [2007]   [Jan]   [23]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 23 Jan 2007 16:38:26 -0800
FromAndrew Morton <>
SubjectRe: [mm PATCH 4/6] RCU: preemptible RCU
On Tue, 16 Jan 2007 00:58:58 +0530
Dipankar Sarma <dipankar@in.ibm.com> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-01-24 02:05    [from the cache]
©2003-2008