diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2015-06-10 20:14:54 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-11 01:43:43 +0200 |
commit | f371763a79d5212c2cb216b46fa8af46ba56cee3 (patch) | |
tree | 05901da392e1cd5b2c837e6709c7d262a5012ae9 /drivers | |
parent | checkpatch: fix "GLOBAL_INITIALISERS" test (diff) | |
download | linux-f371763a79d5212c2cb216b46fa8af46ba56cee3.tar.xz linux-f371763a79d5212c2cb216b46fa8af46ba56cee3.zip |
mm: memcontrol: fix false-positive VM_BUG_ON() on -rt
On -rt, the VM_BUG_ON(!irqs_disabled()) triggers inside the memcg
swapout path because the spin_lock_irq(&mapping->tree_lock) in the
caller doesn't actually disable the hardware interrupts - which is fine,
because on -rt the tophalves run in process context and so we are still
safe from preemption while updating the statistics.
Remove the VM_BUG_ON() but keep the comment of what we rely on.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reported-by: Clark Williams <williams@redhat.com>
Cc: Fernando Lopez-Lezcano <nando@ccrma.Stanford.EDU>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions