]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcg: shorten preempt-disabled section around event checks
authorJohannes Weiner <jweiner@redhat.com>
Wed, 30 Nov 2011 04:11:58 +0000 (15:11 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Nov 2011 04:14:05 +0000 (15:14 +1100)
commit8eac08ec6400b12b0c08794f19f08cefd3774a57
treefe9da2bfa76d4ba0947c5f184a3e7c7f7c658ed9
parentc6c7d2a4cdeea75eac886252d68ba2bb17457293
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