Log to parent instead of twice to child td
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index 599bf08d8a4594aa7f12b46c80ca585d67f3834a..0a3988699987c282f6004b832e4096bc2de49f88 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -1667,7 +1667,7 @@ void io_u_log_error(struct thread_data *td, struct io_u *io_u)
 {
        __io_u_log_error(td, io_u);
        if (td->parent)
-               __io_u_log_error(td, io_u);
+               __io_u_log_error(td->parent, io_u);
 }
 
 static inline bool gtod_reduce(struct thread_data *td)