Re: [RFC PATCH 01/10] CPU hotplug: Introduce "stable" cpu onlinemask, for atomic hotplug readers
From: Tejun Heo
Date: Tue Dec 04 2012 - 10:17:38 EST
Hello, Srivatsa.
On Tue, Dec 04, 2012 at 02:23:41PM +0530, Srivatsa S. Bhat wrote:
> extern const struct cpumask *const cpu_possible_mask;
> extern const struct cpumask *const cpu_online_mask;
> +extern const struct cpumask *const cpu_online_stable_mask;
> extern const struct cpumask *const cpu_present_mask;
> extern const struct cpumask *const cpu_active_mask;
This is a bit nasty. The distinction between cpu_online_mask and the
stable one is quite subtle and there's no mechanism to verify the
right one is in use. IIUC, the only time cpu_online_mask and
cpu_online_stable_mask can deviate is during the final stage CPU take
down, right? If so, why not just make cpu_online_mask the stable one
and the few cases where the actual online state matters deal with the
internal version? Anyone outside cpu hotplug proper should be happy
with the stable version anyway, no?
Thanks.
--
tejun
--
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/