iolog: default to good return
authorJens Axboe <axboe@kernel.dk>
Fri, 27 Apr 2018 04:45:04 +0000 (22:45 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Apr 2018 04:45:04 +0000 (22:45 -0600)
We should only return failure if we attempted to load a log
and failed.

Fixes: b153f94a22d8 ("iolog/blktrace: boolean conversion")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
iolog.c

diff --git a/iolog.c b/iolog.c
index 13040b6..6e44119 100644 (file)
--- a/iolog.c
+++ b/iolog.c
@@ -580,7 +580,7 @@ bool init_iolog(struct thread_data *td)
        } else if (td->o.write_iolog_file)
                ret = init_iolog_write(td);
        else
-               ret = false;
+               ret = true;
 
        if (!ret)
                td_verror(td, EINVAL, "failed initializing iolog");