X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=backend.c;h=d3e9bf8160615b64ae714b47f4524403df272f44;hp=c14f37ca55e809f534652ae6e289a214486277d3;hb=4d832322bf67a8a496bee049bc7dd9a2fdd828a2;hpb=fa07eaa6913d7171c4259b3b0cd76dae3e76ca00 diff --git a/backend.c b/backend.c index c14f37ca..d3e9bf81 100644 --- a/backend.c +++ b/backend.c @@ -1692,16 +1692,14 @@ static void *thread_main(void *data) if (td_io_init(td)) goto err; - if (init_random_map(td)) + if (!init_random_map(td)) goto err; if (o->exec_prerun && exec_string(o, o->exec_prerun, (const char *)"prerun")) goto err; - if (o->pre_read) { - if (pre_read_files(td) < 0) - goto err; - } + if (o->pre_read && !pre_read_files(td)) + goto err; fio_verify_init(td);