[sheepdog] [PATCH stable-0.9 3/7] init trace for work queue in dog command
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Fri Dec 26 05:41:28 CET 2014
From: Jinzhi Chen <nxtjinzhi at gmail.com>
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>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
dog/dog.c | 3 +++
1 file changed, 3 insertions(+)
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.8.3.2
More information about the sheepdog
mailing list