]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcg: shorten preempt-disabled section around event checks
authorJohannes Weiner <jweiner@redhat.com>
Thu, 8 Dec 2011 04:42:44 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:31 +0000 (17:43 +1100)
commitf8926b904dc1310c6ea449c9273a03b8a8ea6679
tree2077ea0b8edb7d23b7076d235ccea2e5cde8a1ae
parent827d86f6a16299fc6bd43e0c70e6bc5744077ac4
mm: memcg: shorten preempt-disabled section around event checks

Only the ratelimit checks themselves have to run with preemption disabled,
the resulting actions - checking for usage thresholds, updating the soft
limit tree - can and should run with preemption enabled.

Signed-off-by: Johannes Weiner <jweiner@redhat.com>
Reported-by: Yong Zhang <yong.zhang0@gmail.com>
Reported-by: Luis Henriques <henrix@camandro.org>
Tested-by: Luis Henriques <henrix@camandro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c