Re: [PATCH 2/4] stop_machine: reimplement using cpuhog

From: Tejun Heo
Date: Mon Mar 08 2010 - 18:19:25 EST


Hello,

On 03/09/2010 01:32 AM, Arjan van de Ven wrote:
> On Tue, 9 Mar 2010 00:53:21 +0900
> Tejun Heo <tj@xxxxxxxxxx> wrote:
>
>> Reimplement stop_machine using cpuhog. As cpuhogs are guaranteed to
>> be available for all online cpus, stop_machine_create/destroy() are no
>> longer necessary and removed.
>
> question;
> stop_machine pretty much also stops interrupts (it has to, at least for
> the users of stop_machine).. do cpu_hogs do this too?
>
> (if they don't, cpu_hogs aren't safe for some of the users of
> stop_machine, like code patching etc)

That is and has always been done by stop_machine cpuhog callback
stop_cpu(). Only the thread pool is changed. The logic stays the
same.

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/