diff options
author | Dennis Zhou <dennisz@fb.com> | 2017-06-19 19:28:29 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-06-20 13:43:38 -0400 |
commit | 5ccd30e40e731051f6d1eb02f7ac073c1ef9deba (patch) | |
tree | 757a3cf00191dd17d7be03400a3e3c397d526b89 /mm/percpu.c | |
parent | 1328710b8ec30ac552b51bf804d1fc255a1c7451 (diff) | |
download | linux-stable-5ccd30e40e731051f6d1eb02f7ac073c1ef9deba.tar.gz linux-stable-5ccd30e40e731051f6d1eb02f7ac073c1ef9deba.tar.bz2 linux-stable-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/percpu.c')
-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; |