X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Frotation-thread.c;h=3256a1e9b6581899380cb47f16cb35b10a90b32c;hp=25dbf76a932c3414f294848f2211a42e5e8659e3;hb=ed1e52a3cc41925b701cd1343ace4c450ff836d9;hpb=a7333da73c2083281c5ec833d041b7acf0d10d0b diff --git a/src/bin/lttng-sessiond/rotation-thread.c b/src/bin/lttng-sessiond/rotation-thread.c index 25dbf76a9..3256a1e9b 100644 --- a/src/bin/lttng-sessiond/rotation-thread.c +++ b/src/bin/lttng-sessiond/rotation-thread.c @@ -642,7 +642,7 @@ end: return ret; } -/* Call with the session lock held. */ +/* Call with the session and session_list locks held. */ static int launch_session_rotation(struct ltt_session *session) { @@ -736,10 +736,9 @@ int handle_job_queue(struct rotation_thread_handle *handle, } session_lock(session); - session_unlock_list(); - ret = run_job(job, session, handle->notification_thread_handle); session_unlock(session); + session_unlock_list(); free(job); if (ret) { goto end;