{
void *p = io_u_verify_off(hdr, io_u, header_num);
struct vhdr_sha256 *vh = hdr_priv(hdr);
- uint8_t sha256[128];
+ uint8_t sha256[64];
struct sha256_ctx sha256_ctx = {
.buf = sha256,
};
io_u->file = NULL;
pthread_mutex_lock(&td->io_u_lock);
+
+ if (io_u->flags & IO_U_F_IN_CUR_DEPTH) {
+ td->cur_depth--;
+ io_u->flags &= ~IO_U_F_IN_CUR_DEPTH;
+ }
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;
}
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;
}