X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=diskutil.h;h=f7730667c7cf81a6831acabec904159fd87634b2;hp=25d0bebfc4074ec83074f8e3e423a89315df2851;hb=087c0cba36b6d2bf9c5f9b9ce96f308e0be1bd9e;hpb=a666cab8ed3d2a2fa782be345425a2e88734a007 diff --git a/diskutil.h b/diskutil.h index 25d0bebf..f7730667 100644 --- a/diskutil.h +++ b/diskutil.h @@ -4,8 +4,7 @@ #define FIO_DU_NAME_SZ 64 #include "lib/output_buffer.h" - -extern volatile int helper_exit; +#include "helper_thread.h" struct disk_util_stats { uint64_t ios[2]; @@ -47,7 +46,6 @@ struct disk_util { */ struct flist_head slavelist; - char *name; char *sysfs_root; char path[PATH_MAX]; int major, minor; @@ -116,6 +114,7 @@ extern int update_io_ticks(void); extern void setup_disk_util(void); extern void disk_util_prune_entries(void); #else +/* keep this as a function to avoid a warning in handle_du() */ static inline void print_disk_util(struct disk_util_stat *du, struct disk_util_agg *agg, int terse, struct buf_output *out) @@ -129,7 +128,7 @@ static inline void print_disk_util(struct disk_util_stat *du, static inline int update_io_ticks(void) { - return helper_exit; + return helper_should_exit(); } #endif