[sheepdog] [PATCH] init trace for work queue in dog command
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Wed Nov 26 08:10:32 CET 2014
At Tue, 25 Nov 2014 10:09:06 +0800,
Jinzhi Chen wrote:
>
> when extrace `wq_trace_init` from `init_work_queue`,
> we need to call `wq_trace_init` before `init_work_queue`
> so that dog's new thread can work properly.
>
> Signed-off-by: Jinzhi Chen <nxtjinzhi at gmail.com>
> ---
> dog/dog.c | 3 +++
> 1 file changed, 3 insertions(+)
Applied, thanks. It would be useful when we support tracing in dog.
Thanks,
Hitoshi
>
> diff --git a/dog/dog.c b/dog/dog.c
> index 76925f1..3f33cdd 100644
> --- a/dog/dog.c
> +++ b/dog/dog.c
> @@ -559,6 +559,9 @@ int main(int argc, char **argv)
> if (init_event(EPOLL_SIZE) < 0)
> exit(EXIT_SYSFAIL);
>
> + if (wq_trace_init() < 0)
> + exit(EXIT_SYSFAIL);
> +
> if (init_work_queue(get_nr_nodes) != 0) {
> sd_err("Failed to init work queue");
> exit(EXIT_SYSFAIL);
> --
> 1.9.3 (Apple Git-50)
>
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog
More information about the sheepdog
mailing list