X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=stat.c;h=518d14dd13ad43dbe1dbfe02b6e83aec0a802eda;hp=fc0abe0a82b573742d781fa6cde65fc768f9d105;hb=eecf272f1b2d55c1e49aadd7f65b9a433ba04c15;hpb=b4a6a59a939f0e6554632de311e7d1d1b7633ccf diff --git a/stat.c b/stat.c index fc0abe0a..518d14dd 100644 --- a/stat.c +++ b/stat.c @@ -243,7 +243,9 @@ void init_disk_util(struct thread_data *td) sprintf(foo, "%s", tmp); } - td->sysfs_root = strdup(foo); + if (td->ioscheduler) + td->sysfs_root = strdup(foo); + disk_util_add(dev, foo); } @@ -524,6 +526,8 @@ void show_run_stats(void) show_disk_util(); } + + free(runstats); } static inline void add_stat_sample(struct io_stat *is, unsigned long val)