Messages in this thread | | | Date | Sat, 8 Sep 2012 10:29:50 -0700 | From | Tejun Heo <> | Subject | Re: [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
| |