[sheepdog] [PATCH v2 05/10] work: try to create worker threads in worker_thread_request_done

Liu Yuan namei.unix at gmail.com
Tue May 14 05:18:12 CEST 2013


On 05/13/2013 11:11 PM, MORITA Kazutaka wrote:
> Currently, even if the number of nodes is increased, the dynamic work
> queue doesn't create worker threads until new work is added to the
> queue.  This tries to create threads just after the work queue detect
> that the cluster is expanded.

Why expanding at queue_work() isn't enough? Nodes are rarely added, so
most of the time, expanding at queue_work() works fine. It looks much
cleaner if we can reduce expanding call to one.

Thanks,
Yuan



More information about the sheepdog mailing list