mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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>
This commit is contained in:
parent
1328710b8e
commit
5ccd30e40e
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue