在 2013-5-16 AM11:40,"MORITA Kazutaka" <[email protected]>写道: > > 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
-- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
