X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=blktrace.c;h=ef9ce6bffd8686e1e5f5e7bf4f00828490495c2c;hb=ebd9b4dd690808f720712b9c1a1288ae0742f361;hp=619121c704a90f198585293d976dffbe1984ca30;hpb=315bbf01119ea783554d274add04db98c0a3b433;p=fio.git diff --git a/blktrace.c b/blktrace.c index 619121c7..ef9ce6bf 100644 --- a/blktrace.c +++ b/blktrace.c @@ -5,6 +5,7 @@ #include #include #include +#include #include "flist.h" #include "fio.h" @@ -442,7 +443,10 @@ err: bool read_blktrace(struct thread_data* td) { struct blk_io_trace t; - struct file_cache cache = { }; + struct file_cache cache = { + .maj = ~0U, + .min = ~0U, + }; unsigned long ios[DDIR_RWDIR_SYNC_CNT] = { }; unsigned long long rw_bs[DDIR_RWDIR_CNT] = { }; unsigned long skipped_writes; @@ -542,7 +546,8 @@ bool read_blktrace(struct thread_data* td) td->o.max_bs[DDIR_TRIM] = max(td->o.max_bs[DDIR_TRIM], rw_bs[DDIR_TRIM]); io_u_quiesce(td); free_io_mem(td); - init_io_u_buffers(td); + if (init_io_u_buffers(td)) + return false; } return true; }