lkml.org 
[lkml]   [2012]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH wq/for-3.6-fixes 3/3] workqueue: fix possible idle worker depletion during CPU_ONLINE
    Hello, Lai.

    On Sun, Sep 09, 2012 at 01:18:25AM +0800, Lai Jiangshan wrote:
    > > + /*
    > > + * CPU hotplug could have scheduled rebind_work while we're
    > > + * waiting for manager_mutex. Rebind before doing anything
    > > + * else. This has to be handled here. worker_thread()
    > > + * will be confused by the unexpected work item.
    > > + */
    > > + process_scheduled_works(worker);
    >
    > hotplug code can't iterate manager. not rebind_work() nor UNBOUND for manager.

    Ah, right. It isn't either on idle or busy list. Maybe have
    pool->manager pointer?

    Thanks.

    --
    tejun


    \
     
     \ /
      Last update: 2012-09-08 20:01    [W:2.153 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site