Re: RCU scaling on large systems

From: William Lee Irwin III
Date: Sat May 01 2004 - 17:38:52 EST


On Sat, May 01, 2004 at 02:17:04PM -0700, William Lee Irwin III wrote:
> +static inline void rcu_set_need_switch_cpumask(cpumask_t cpumask)
> +{
> + int cpu;
> + for_each_cpu_mask(cpu, cpumask)
> + atomic_set(&per_cpu(rcu_data, cpu).need_switch, 1);
> +}

needs to be:
for_each_online_cpu(cpu)
atomic_set(&per_cpu(rcu_data, cpu).need_switch, !!cpu_isset(cpu, cpumask));


-- wli
-
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/