Commit 8e7c786a authored by Dennis Zhou's avatar Dennis Zhou Committed by Zheng Zengkai
Browse files

percpu: use pcpu_free_slot instead of pcpu_nr_slots - 1

mainline inclusion
from mainline-v5.14-rc1
commit 1c29a3ce
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4BE79


CVE: NA

-------------------------------------------------
This prepares for adding a to_depopulate list and sidelined list after
the free slot in the set of lists in pcpu_slot.

Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
Acked-by: default avatarRoman Gushchin <guro@fb.com>
Signed-off-by: default avatarDennis Zhou <dennis@kernel.org>
(cherry picked from commit 1c29a3ce)
Signed-off-by: default avatarYuanzheng Song <songyuanzheng@huawei.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 797a1ad6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment