* [PATCH -next] mm/hugetlb_cgroup: register lockdep key for cftype
@ 2024-06-18 3:47 Xiu Jianfeng
0 siblings, 0 replies; only message in thread
From: Xiu Jianfeng @ 2024-06-18 3:47 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel
The commit e18df2889ff9 ("mm/hugetlb_cgroup: prepare cftypes based on
template") has changed the cftypes from static allocated objects to
dynamic ones, so the cft->lockdep_key should be registered proactively.
Fixes: e18df2889ff9 ("mm/hugetlb_cgroup: prepare cftypes based on template")
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202406181046.8d8b2492-oliver.sang@intel.com
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
---
mm/hugetlb_cgroup.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/hugetlb_cgroup.c b/mm/hugetlb_cgroup.c
index 2b899c4ae968..4ff238ba1250 100644
--- a/mm/hugetlb_cgroup.c
+++ b/mm/hugetlb_cgroup.c
@@ -836,6 +836,8 @@ hugetlb_cgroup_cfttypes_init(struct hstate *h, struct cftype *cft,
cft->file_offset = MEMFILE_OFFSET0(offset) +
MEMFILE_FIELD_SIZE(offset) * idx;
}
+
+ lockdep_register_key(&cft->lockdep_key);
}
}
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-18 3:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-18 3:47 [PATCH -next] mm/hugetlb_cgroup: register lockdep key for cftype Xiu Jianfeng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox