From: Jens Axboe Date: Thu, 15 Nov 2018 22:24:11 +0000 (-0700) Subject: backend: silence "No I/O performed by..." if jobs ends in error X-Git-Tag: fio-3.13~113 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=94574a760959e2ed477606dc2d48d1404925f9bb;p=fio.git backend: silence "No I/O performed by..." if jobs ends in error If we have an error, we are logging it. There's no point in spewing extra info on not having done any IO, that's only really useful if we don't know WHY we didn't do any IO. Signed-off-by: Jens Axboe --- diff --git a/backend.c b/backend.c index 12f1b2b9..a92ec456 100644 --- a/backend.c +++ b/backend.c @@ -1869,8 +1869,8 @@ static void *thread_main(void *data) * then something went wrong unless FIO_NOIO or FIO_DISKLESSIO. * (Are we not missing other flags that can be ignored ?) */ - if ((td->o.size || td->o.io_size) && !ddir_rw_sum(bytes_done) && - !did_some_io && !td->o.create_only && + if (!td->error && (td->o.size || td->o.io_size) && + !ddir_rw_sum(bytes_done) && !did_some_io && !td->o.create_only && !(td_ioengine_flagged(td, FIO_NOIO) || td_ioengine_flagged(td, FIO_DISKLESSIO))) log_err("%s: No I/O performed by %s, "