Re: [PATCH] sched: shorten setting the allowed cpu mask of task

From: Hillf Danton
Date: Mon May 09 2011 - 08:53:00 EST


On Mon, May 9, 2011 at 12:39 PM, Yong Zhang <yong.zhang0@xxxxxxxxx> wrote:
> On Fri, May 6, 2011 at 8:52 PM, Hillf Danton <dhillf@xxxxxxxxx> wrote:
>> When setting the allowed cpu mask for a given task, if the task is
>> already bound to certain cpu, after checking the validity of the new
>
> Maybe we don't need to restrict it only on task bound to certain cpu.
>
Hi Yong

The original code guards, I guess, casual change in the mask of
allowed CPUs, if bounded,
for tasks such as the workers of work queue. So the restriction looks necessary.

thanks
Hillf
--
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/