fio: fix aio trim completion latencies
[fio.git] / helper_thread.c
index c890da4a3869327a9a5387d1f306487e8488cb1a..f0c717f5026db994509d88f6d86d21cebc447c3a 100644 (file)
@@ -1,3 +1,9 @@
+#ifdef CONFIG_VALGRIND_DEV
+#include <valgrind/drd.h>
+#else
+#define DRD_IGNORE_VAR(x) do { } while (0)
+#endif
+
 #include "fio.h"
 #include "smalloc.h"
 #include "helper_thread.h"
@@ -170,6 +176,8 @@ int helper_thread_create(struct fio_sem *startup_sem, struct sk_out *sk_out)
 
        hd->startup_sem = startup_sem;
 
+       DRD_IGNORE_VAR(helper_data);
+
        ret = pthread_create(&hd->thread, NULL, helper_thread_main, hd);
        if (ret) {
                log_err("Can't create helper thread: %s\n", strerror(ret));