summaryrefslogtreecommitdiff
path: root/mm/percpu.c
diff options
context:
space:
mode:
authorDennis Zhou <dennisz@fb.com>2017-06-19 19:28:29 -0400
committerTejun Heo <tj@kernel.org>2017-06-20 13:43:38 -0400
commit5ccd30e40e731051f6d1eb02f7ac073c1ef9deba (patch)
tree757a3cf00191dd17d7be03400a3e3c397d526b89 /mm/percpu.c
parent1328710b8ec30ac552b51bf804d1fc255a1c7451 (diff)
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 <dennisz@fb.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/percpu.c')
-rw-r--r--mm/percpu.c2
1 files changed, 2 insertions, 0 deletions
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 <given offset, in use> pair */
i = 0;