lkml.org 
[lkml]   [2010]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] stop_machine: reimplement using cpuhog
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@kernel.org> 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


\
 
 \ /
  Last update: 2010-03-09 00:21    [W:0.074 / U:1.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site