Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ccd30e4 authored by Dennis Zhou's avatar Dennis Zhou Committed by Tejun Heo
Browse files

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: default avatarDennis Zhou <dennisz@fb.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 1328710b
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -672,6 +672,8 @@ static void pcpu_free_area(struct pcpu_chunk *chunk, int freeme,
	int to_free = 0;
	int to_free = 0;
	int *p;
	int *p;


	lockdep_assert_held(&pcpu_lock);

	freeme |= 1;	/* we are searching for <given offset, in use> pair */
	freeme |= 1;	/* we are searching for <given offset, in use> pair */


	i = 0;
	i = 0;