[sheepdog] [PATCH] init trace for work queue in dog command

Jinzhi Chen nxtjinzhi at gmail.com
Tue Nov 25 03:09:06 CET 2014


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(+)

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)




More information about the sheepdog mailing list