[sheepdog] [PATCH] collie: allow calling queue_work() in done()
MORITA Kazutaka
morita.kazutaka at gmail.com
Thu May 16 05:40:13 CEST 2013
At Thu, 16 May 2013 11:32:49 +0800,
Liu Yuan wrote:
>
> 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/
It means the number of works processed by the worker, so I think 'nr_works' is
correct. Anyway, either is fine since the patch has been already pushed to the
master.
Thanks,
Kazutaka
More information about the sheepdog
mailing list