engines/rados: fix build issue with thread_cond_t vs pthread_cond_t
authorVincent Fu <vincent.fu@wdc.com>
Thu, 14 May 2020 16:54:11 +0000 (12:54 -0400)
committerVincent Fu <vincent.fu@wdc.com>
Thu, 14 May 2020 16:54:11 +0000 (12:54 -0400)
The Travis-CI Linux build fails because the type for completed_more_io
was changed from pthread_cond_t to thread_cond_t:

https://travis-ci.org/github/axboe/fio/jobs/687073515

Change it back to pthread_cond_t.

Fixes: 1e30d8d005a568169c0749f5fc6fb2d5f09dcc97 ("engines/rados: Added
waiting for completion on cleanup.")
Signed-off-by: Vincent Fu <vincent.fu@wdc.com>
engines/rados.c

index 6bcba2b871d5b12215f1086d9a82b82d8014bfbf..d44134276b471010f9a96f5a0c75c547f38990ea 100644 (file)
@@ -17,7 +17,7 @@ struct rados_data {
        struct io_u **aio_events;
        bool connected;
        pthread_mutex_t completed_lock;
-       thread_cond_t completed_more_io;
+       pthread_cond_t completed_more_io;
        struct flist_head completed_operations;
        uint64_t ops_scheduled;
        uint64_t ops_completed;