From 33f29e43bc0e40f902d0c93218f0ef9a848f5297 Mon Sep 17 00:00:00 2001 From: Kozlowski Mateusz Date: Fri, 12 Mar 2021 12:41:19 +0100 Subject: [PATCH] Aligned ocf_volume Force cacheline alignment to avoid cacheline trashing on static fields Signed-off-by: Kozlowski Mateusz --- src/ocf_volume_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocf_volume_priv.h b/src/ocf_volume_priv.h index e297196..0418d75 100644 --- a/src/ocf_volume_priv.h +++ b/src/ocf_volume_priv.h @@ -33,7 +33,7 @@ struct ocf_volume { /* true if reading discarded pages returns 0 */ } features; struct ocf_refcnt refcnt; -}; +} __attribute__((aligned(64))); int ocf_volume_type_init(struct ocf_volume_type **type, const struct ocf_volume_properties *properties,