提交 f2198ddb 编写于 作者: W Wei Li 提交者: Zheng Zengkai

locking/qspinlock: Disable CNA by default

hulk inclusion
category: feature
bugzilla: 169576
CVE: NA

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

Disable CNA by default, this default behavior can be overridden with
the kernel boot command-line option "numa_spinlock=on/off/auto".
Signed-off-by: NWei Li <liwei391@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 0532ec6d
......@@ -378,9 +378,9 @@ static inline void cna_lock_handoff(struct mcs_spinlock *node,
/*
* Constant (boot-param configurable) flag selecting the NUMA-aware variant
* of spinlock. Possible values: -1 (off) / 0 (auto, default) / 1 (on).
* of spinlock. Possible values: -1 (off, default) / 0 (auto) / 1 (on).
*/
static int numa_spinlock_flag;
static int numa_spinlock_flag = -1;
static int __init numa_spinlock_setup(char *str)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册