diff options
author | Dennis Zhou <dennisz@fb.com> | 2017-06-20 01:28:29 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-06-20 19:43:38 +0200 |
commit | 5ccd30e40e731051f6d1eb02f7ac073c1ef9deba (patch) | |
tree | 757a3cf00191dd17d7be03400a3e3c397d526b89 /mm | |
parent | mark most percpu globals as __ro_after_init (diff) | |
download | linux-5ccd30e40e731051f6d1eb02f7ac073c1ef9deba.tar.xz linux-5ccd30e40e731051f6d1eb02f7ac073c1ef9deba.zip |
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')
-rw-r--r-- | mm/percpu.c | 2 |
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; |