X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=idletime.c;h=a366d2b16311bf6ec1b8e8d50fb84c44edc71eda;hp=8d23154e54c94ee1ae5af8b05582fd2ed90dfc46;hb=ec803e97e616d8a410d760368c478b683625842a;hpb=735ed278a7ba6e3f1d5a0c08fc08149a2f435c37 diff --git a/idletime.c b/idletime.c index 8d23154e..a366d2b1 100644 --- a/idletime.c +++ b/idletime.c @@ -73,8 +73,10 @@ static void *idle_prof_thread_fn(void *data) pthread_mutex_lock(&ipt->init_lock); /* exit if any other thread failed to start */ - if (ipc.status == IDLE_PROF_STATUS_ABORT) + if (ipc.status == IDLE_PROF_STATUS_ABORT) { + pthread_mutex_unlock(&ipt->init_lock); return NULL; + } retval = set_cpu_affinity(ipt); if (retval == -1) {