提交 5ccd30e4 编写于 作者: D Dennis Zhou 提交者: Tejun Heo

percpu: add missing lockdep_assert_held to func pcpu_free_area

Add a missing lockdep_assert_held for pcpu_lock to improve consistency
and safety throughout mm/percpu.c.
Signed-off-by: NDennis Zhou <dennisz@fb.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 1328710b
......@@ -672,6 +672,8 @@ static void pcpu_free_area(struct pcpu_chunk *chunk, int freeme,
int to_free = 0;
int *p;
lockdep_assert_held(&pcpu_lock);
freeme |= 1; /* we are searching for <given offset, in use> pair */
i = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册