Fix: statedump hang due to incorrect wait/wakeup use
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 8 Jan 2013 19:27:05 +0000 (14:27 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 8 Jan 2013 19:30:44 +0000 (14:30 -0500)
Reported-by: Phil Wilshire <sysdcs@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-statedump-impl.c

index e042a96deaceed9e941f1db06afbf4ea620892a7..4832c876d8eba0bc74641e65ba9c38d09c4eb6cc 100644 (file)
@@ -369,7 +369,7 @@ int do_lttng_statedump(struct lttng_session *session)
                schedule_delayed_work_on(cpu, &cpu_work[cpu], 0);
        }
        /* Wait for all threads to run */
-       __wait_event(statedump_wq, (atomic_read(&kernel_threads_to_run) != 0));
+       wait_event(statedump_wq, (atomic_read(&kernel_threads_to_run) != 0));
        put_online_cpus();
        /* Our work is done */
        printk(KERN_DEBUG "LTT state dump end\n");
This page took 0.026137 seconds and 4 git commands to generate.