]> git.baikalelectronics.ru Git - kernel.git/commit
mm: workingset: replace IRQ-off check with a lockdep assert.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 22 Mar 2022 21:45:50 +0000 (14:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:08 +0000 (15:57 -0700)
commitec24b3c4e09c136f6b4d21c84a6bbfe7194ef286
tree9a549f7daa93d706b5c23e20ceb06237a0dd0265
parent49e690ccf3113001c71d6e30867a560df598bd8d
mm: workingset: replace IRQ-off check with a lockdep assert.

Commit 9df6368ade033 ("mm: workingset: add vmstat counter for shadow
nodes") introduced an IRQ-off check to ensure that a lock is held which
also disabled interrupts.  This does not work the same way on PREEMPT_RT
because none of the locks, that are held, disable interrupts.

Replace this check with a lockdep assert which ensures that the lock is
held.

Link: https://lkml.kernel.org/r/20220301122143.1521823-3-bigeasy@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Zefan Li <lizefan.x@bytedance.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/workingset.c