Fix an error triggered by double releasing the lock
authoranson-lo <83398016+anson-lo@users.noreply.github.com>
Sun, 1 Aug 2021 04:33:22 +0000 (12:33 +0800)
committerGitHub <noreply@github.com>
Sun, 1 Aug 2021 04:33:22 +0000 (12:33 +0800)
Fix an error triggered by double releasing the lock.
Fixes: https://github.com/axboe/fio/issues/1254.

Signed-off-by: Anson Lo ycaibb@gmail.com
verify.c

index a418c05413426905e4772cb62855dad83e273197..0e1e4639348547b86319c67a05349e161f17b7e0 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -1411,7 +1411,6 @@ static void *verify_async_thread(void *data)
                        ret = pthread_cond_wait(&td->verify_cond,
                                                        &td->io_u_lock);
                        if (ret) {
-                               pthread_mutex_unlock(&td->io_u_lock);
                                break;
                        }
                }