Re: cpusets vs cpu-hotplug interaction is broken?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Oleg Nesterov <oleg@...>
Cc: Cliff Wickman <cpw@...>, Paul Jackson <pj@...>, Paul Menage <menage@...>, <linux-kernel@...>, Andrew Morton <akpm@...>, Srivatsa Vaddagiri <vatsa@...>
Date: Wednesday, August 29, 2007 - 8:51 am

On Wed, Aug 29, 2007 at 02:52:04PM +0400, Oleg Nesterov wrote:

Well, the comment for cpuset_cpus_allowed() says

/* 
 * Description: Returns the cpumask_t cpus_allowed of the cpuset
 * attached to the specified @tsk.  Guaranteed to return some non-empty
 * subset of cpu_online_map, even if this means going outside the
 * tasks cpuset.             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
 **/^^^^^^^^^^^^^

Since this behaviour has been documented, I presume there is a reason
behind it. 

So either we're incorrectly using cpuset_cpus_allowed in
sched_setaffinity or we're missing something subtle :)

Thanks and Regards
gautham.
-- 
Gautham R Shenoy
Linux Technology Center
IBM India.
"Freedom comes with a price tag of responsibility, which is still a bargain,
because Freedom is priceless!"
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
cpuset: attach_task() vs sched_setaffinity() race?, Oleg Nesterov, (Sat Aug 25, 12:26 pm)
cpusets vs cpu-hotplug interaction is broken?, Oleg Nesterov, (Tue Aug 28, 9:48 am)
Re: cpusets vs cpu-hotplug interaction is broken?, Gautham R Shenoy, (Wed Aug 29, 4:51 am)
Re: cpusets vs cpu-hotplug interaction is broken?, Oleg Nesterov, (Wed Aug 29, 6:52 am)
Re: cpusets vs cpu-hotplug interaction is broken?, Gautham R Shenoy, (Wed Aug 29, 8:51 am)