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.2.0-rc1~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8240b2e21a7ce1653d5e45b01c4709c86c3fb636;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");