From 5ccd30e40e731051f6d1eb02f7ac073c1ef9deba Mon Sep 17 00:00:00 2001 From: Dennis Zhou Date: Mon, 19 Jun 2017 19:28:29 -0400 Subject: [PATCH] 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: Dennis Zhou Signed-off-by: Tejun Heo --- mm/percpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/percpu.c b/mm/percpu.c index c03753054099..be95d3192acb 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -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 pair */ i = 0; -- GitLab