Re: [PATCH wq/for-3.6-fixes 3/3] workqueue: fix possible idleworker depletion during CPU_ONLINE

From: Tejun Heo
Date: Sat Sep 08 2012 - 13:30:33 EST


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
--
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/