hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAU4UZ CVE: NA
--------------------------------
Use spin_lock_nested to avoid invalid lockdep warning.
Fixes: 0bc0d0d57eda ("dhugetlb: backport dynamic hugetlb feature") Signed-off-by: Liu Shixin liushixin2@huawei.com --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index e31a881bc8fe..40136eba5c07 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -3355,7 +3355,7 @@ static inline void dhugetlb_percpu_pool_lock_all(struct dhugetlb_pool *hpool) int i;
for (i = 0; i < NR_SMPOOL; i++) - spin_lock(&hpool->smpool[i].lock); + spin_lock_nested(&hpool->smpool[i].lock, i); }
static inline void dhugetlb_percpu_pool_unlock_all(struct dhugetlb_pool *hpool)