From: Mathieu Desnoyers Date: Tue, 8 Jan 2013 19:27:05 +0000 (-0500) Subject: Fix: statedump hang due to incorrect wait/wakeup use X-Git-Tag: v2.1.1~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=76b792cbd23db5a0d2856bdde006121f113ebba5;p=lttng-modules.git Fix: statedump hang due to incorrect wait/wakeup use Reported-by: Phil Wilshire Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-statedump-impl.c b/lttng-statedump-impl.c index be498acc..765fcea8 100644 --- a/lttng-statedump-impl.c +++ b/lttng-statedump-impl.c @@ -397,7 +397,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");