Aligned ocf_volume

Force cacheline alignment to avoid cacheline trashing on static fields
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
This commit is contained in:
Kozlowski Mateusz 2021-03-12 12:41:19 +01:00
parent b12e124954
commit 33f29e43bc

View File

@ -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,