[sheepdog] [PATCH] collie: allow calling queue_work() in done()

Liu Yuan namei.unix at gmail.com
Thu May 16 05:32:49 CEST 2013


On 05/16/2013 12:38 AM, MORITA Kazutaka wrote:
> Currently, if we call queue_work() in the second event_loop(),
> work_queue_wait() cannot wait for completion of the work.
> 
> This adds a field 'nr_works' to the worker_info and makes
> work_queue_empty() return true only if both worker_routine() and
> worker_thread_request_done() have no outstanding works.  I think this
> removes a race condition in work_queue_wait() completely.

Applied after s/nr_works/nr_workers/

Thanks,
Yuan



More information about the sheepdog mailing list