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

MORITA Kazutaka morita.kazutaka at gmail.com
Wed May 15 01:47:07 CEST 2013


At Tue, 14 May 2013 23:56:11 +0900,
MORITA Kazutaka wrote:
> 
> From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> 
> Currently, if we call queue_work() in the second event_loop(),
> work_queue_wait() cannot wait for completion of the work.  This fixes
> the problem.
> 
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
>  collie/common.c |   19 ++++++++++++-------
>  include/event.h |    4 ++--
>  lib/event.c     |   19 ++++++++++---------
>  3 files changed, 24 insertions(+), 18 deletions(-)

Please drop this patch.  I've found that work_queue_wait() still has a problem;
work queue can become empty after calling work_queue_empty() and before
event_loop(-1).

Thanks,

Kazutaka



More information about the sheepdog mailing list