X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=rate-submit.c;h=13dbe7a2e9ff8f3face1619e750b83018ba222df;hb=53b5fa1ea4f821899440637ab632ce0e1687c916;hp=b7b703722bbb102c84e0dbfd1fed7be0b35727e5;hpb=fa443634fbfa38fd5d6418a96a45022c78b90df4;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; }