fio: fix dlopen refcounting of dynamic engines
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 4d439d988f088fba797ca858a5f0b8b0b1104910..062abfa74c54ba7b122fac300348fc390243ac4e 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -281,7 +281,6 @@ struct thread_data {
         * IO engine private data and dlhandle.
         */
        void *io_ops_data;
-       void *io_ops_dlhandle;
 
        /*
         * Queue depth of io_u's that fio MIGHT do
@@ -757,17 +756,9 @@ static inline bool option_check_rate(struct thread_data *td, enum fio_ddir ddir)
        return false;
 }
 
-static inline bool __should_check_rate(struct thread_data *td)
-{
-       return (td->flags & TD_F_CHECK_RATE) != 0;
-}
-
 static inline bool should_check_rate(struct thread_data *td)
 {
-       if (!__should_check_rate(td))
-               return false;
-
-       return ddir_rw_sum(td->bytes_done) != 0;
+       return (td->flags & TD_F_CHECK_RATE) != 0;
 }
 
 static inline unsigned long long td_max_bs(struct thread_data *td)