diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-08-01 15:07:38 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-08-01 15:07:38 -0600 |
commit | 87622bf5295880682bfad5ba14116cf5facbaf2c (patch) | |
tree | e858837899ac8dab8ddc26dca43f1ac6f704f2e6 | |
parent | b5aba537d844f73187eb931179ac59e7da570e7c (diff) | |
parent | d89ee9f4c7ac7e0af994e4a4ec02ef07b1698bb9 (diff) | |
download | fio-87622bf5295880682bfad5ba14116cf5facbaf2c.tar.gz fio-87622bf5295880682bfad5ba14116cf5facbaf2c.tar.bz2 |
Merge branch 'master' of https://github.com/bvanassche/fio into master
* 'master' of https://github.com/bvanassche/fio:
Prevent that fio hangs when using io_submit_mode=offload
-rw-r--r-- | rate-submit.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |