Make weak posix_memalign() private to Solaris
[fio.git] / verify.c
index 7d675e46de6b110c25b0145bd00b1453eba60e2f..59f1ddf341e6d5add86a3c2874137ec78870afda 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -444,10 +444,10 @@ int verify_io_u_async(struct thread_data *td, struct io_u *io_u)
        }
        flist_del(&io_u->list);
        flist_add_tail(&io_u->list, &td->verify_list);
+       io_u->flags |= IO_U_F_FREE_DEF;
        pthread_mutex_unlock(&td->io_u_lock);
 
        pthread_cond_signal(&td->verify_cond);
-       io_u->flags |= IO_U_F_FREE_DEF;
        return 0;
 }
 
@@ -478,7 +478,9 @@ int verify_io_u(struct thread_data *td, struct io_u *io_u)
                hdr = p;
 
                if (hdr->fio_magic != FIO_HDR_MAGIC) {
-                       log_err("Bad verify header %x\n", hdr->fio_magic);
+                       log_err("Bad verify header %x at %llu\n",
+                                       hdr->fio_magic,
+                                       io_u->offset + hdr_num * hdr->len);
                        return EILSEQ;
                }