From 4ee9c375b64de236356cc97843d84978edeba491 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 22 Jan 2020 19:53:14 -0700 Subject: [PATCH] stat: ensure we align correctly Fixes: b2a432bfbb6d ("Per-command priority: Priority logging and libaio/io_uring cmdprio_percentage") Signed-off-by: Jens Axboe --- stat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stat.h b/stat.h index fd261f3f..9320c6bd 100644 --- a/stat.h +++ b/stat.h @@ -239,9 +239,9 @@ struct thread_stat { fio_fp64_t ss_deviation; fio_fp64_t ss_criterion; - uint64_t io_u_plat_high_prio[DDIR_RWDIR_CNT][FIO_IO_U_PLAT_NR]; + uint64_t io_u_plat_high_prio[DDIR_RWDIR_CNT][FIO_IO_U_PLAT_NR] __attribute__((aligned(8)));; uint64_t io_u_plat_prio[DDIR_RWDIR_CNT][FIO_IO_U_PLAT_NR]; - struct io_stat clat_high_prio_stat[DDIR_RWDIR_CNT]; + struct io_stat clat_high_prio_stat[DDIR_RWDIR_CNT] __attribute__((aligned(8))); struct io_stat clat_prio_stat[DDIR_RWDIR_CNT]; union { -- 2.25.1