commit | 2ecc1b57721e3cb72bbf558bc169c97037fe3d0a | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Nov 04 20:58:09 2009 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Nov 04 20:58:09 2009 +0100 |
tree | f6f65c88c59e8f2aec5f99e90257781f7b43cc2b | |
parent | daaa166fb4d4869882885094d8b8ad44f6d159ce [diff] [blame] |
Fix race on io_u->flags Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/verify.c b/verify.c index 7d675e4..84e888b 100644 --- a/verify.c +++ b/verify.c
@@ -444,10 +444,10 @@ } 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; }