Commit 603eda38 authored by Yu Kuai's avatar Yu Kuai Committed by Zheng Zengkai
Browse files

block: always align request_wrapper to cacheline

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I65K8D


CVE: NA

--------------------------------

____cacheline_aligned_in_smp will only be effective if CONFIG_SMP is
enabled, use ____cacheline_aligned instead.

Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent a9a9ed42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ struct blk_mq_ctx {
struct request_wrapper {
	/* Time that I/O was counted in part_get_stat_info(). */
	u64 stat_time_ns;
} ____cacheline_aligned_in_smp;
} ____cacheline_aligned;

static inline struct request_wrapper *request_to_wrapper(void *rq)
{