Re: [PATCH 04/40] sched: implement __set_cpus_allowed()

Tejun Heo
2010-01-18T11:23:26Z

On 01/18/2010 06:56 PM, Peter Zijlstra wrote:
>> NOTE: It would be nice to implement kthread_bind() in terms of
>> __set_cpus_allowed() if we can drop the capability to bind to a
>> dead CPU from kthread_bind(), which doesn't seem too popular
>> anyway. With such change, we'll have set_cpus_allowed_ptr() for
>> regular tasks and kthread_bind() for kthreads and can use
>> PF_THREAD_BOUND instead of passing @force parameter around.
>
>
> And your changelog still sucks... it only says what it does, not why.
>
> still hate the patch too.

These part haven't changed at all since the last posting so if you
disliked it before it's kind of expected you still do so.

Anyways, I'm not the greatest fan of this patch either. Let's see how
the whole series fares out first and try to make this better. What do
you think about doing what's described in the NOTE?

Thanks.

--
tejun