[sheepdog] [PATCH] collie: allow calling queue_work() in done()
Liu Yuan
namei.unix at gmail.com
Thu May 16 05:59:35 CEST 2013
在 2013-5-16 AM11:40,"MORITA Kazutaka" <morita.kazutaka at gmail.com>写道:
>
> 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.
>
hmm, I thought it's active workers
> Thanks,
>
> Kazutaka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20130516/c0129837/attachment-0003.html>
More information about the sheepdog
mailing list