projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix segfault with verify_async
[fio.git]
/
verify.c
diff --git
a/verify.c
b/verify.c
index 43dd392687ee53fac4d28161f3ee42514a6c907f..5a9428177eef68b58f9fc9d4e6cfa6596d756688 100644
(file)
--- a/
verify.c
+++ b/
verify.c
@@
-602,10
+602,8
@@
int verify_io_u_async(struct thread_data *td, struct io_u *io_u)
if (io_u->file)
put_file_log(td, io_u->file);
- 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;