X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=rate-submit.c;h=13dbe7a2e9ff8f3face1619e750b83018ba222df;hb=1ae82d673cf5e704b93da56655f6189f43a1592e;hp=b7b703722bbb102c84e0dbfd1fed7be0b35727e5;hpb=0c153a89ce498bf8c9e330165b6971d88ca2b12e;p=fio.git diff --git a/rate-submit.c b/rate-submit.c index b7b70372..13dbe7a2 100644 --- a/rate-submit.c +++ b/rate-submit.c @@ -97,8 +97,11 @@ static int io_workqueue_fn(struct submit_worker *sw, td->cur_depth -= ret; } - if (error || td->error) + if (error || td->error) { + pthread_mutex_lock(&td->io_u_lock); pthread_cond_signal(&td->parent->free_cond); + pthread_mutex_unlock(&td->io_u_lock); + } return 0; }