X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=backend.c;h=d6450baf1efdef1da5945445e7f9325c2e7f0efd;hp=1c60138c50b5a957b35378368734b83e906baf92;hb=817ae9778a9b10b1db6e10db02ef865ff15fd73c;hpb=3114b675fd2b77ffa0f485b466811feb34dc57ed diff --git a/backend.c b/backend.c index 1c60138c..d6450baf 100644 --- a/backend.c +++ b/backend.c @@ -1874,6 +1874,11 @@ static void *thread_main(void *data) "perhaps try --debug=io option for details?\n", td->o.name, td->io_ops->name); + /* + * Acquire this lock if we were doing overlap checking in + * offload mode so that we don't clean up this job while + * another thread is checking its io_u's for overlap + */ if (td_offload_overlap(td)) pthread_mutex_lock(&overlap_check); td_set_runstate(td, TD_FINISHING);