lkml.org 
[lkml]   [2012]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 01/10] CPU hotplug: Introduce "stable" cpu online mask, for atomic hotplug readers
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


\
 
 \ /
  Last update: 2012-12-04 21:21    [W:0.111 / U:1.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site