summaryrefslogtreecommitdiffstats
path: root/net/rds/page.c
diff options
context:
space:
mode:
authorSalman Qazi <sqazi@google.com>2010-10-12 16:25:19 +0200
committerThomas Gleixner <tglx@linutronix.de>2010-10-14 13:29:59 +0200
commitf13d4f979c518119bba5439dd2364d76d31dcd3f (patch)
tree952be8d19f13a3f0942c67c1f0d400d8dab472ea /net/rds/page.c
parentMerge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/as... (diff)
downloadlinux-f13d4f979c518119bba5439dd2364d76d31dcd3f.tar.xz
linux-f13d4f979c518119bba5439dd2364d76d31dcd3f.zip
hrtimer: Preserve timer state in remove_hrtimer()
The race is described as follows: CPU X CPU Y remove_hrtimer // state & QUEUED == 0 timer->state = CALLBACK unlock timer base timer->f(n) //very long hrtimer_start lock timer base remove_hrtimer // no effect hrtimer_enqueue timer->state = CALLBACK | QUEUED unlock timer base hrtimer_start lock timer base remove_hrtimer mode = INACTIVE // CALLBACK bit lost! switch_hrtimer_base CALLBACK bit not set: timer->base changes to a different CPU. lock this CPU's timer base The bug was introduced with commit ca109491f (hrtimer: removing all ur callback modes) in 2.6.29 [ tglx: Feed new state via local variable and add a comment. ] Signed-off-by: Salman Qazi <sqazi@google.com> Cc: akpm@linux-foundation.org Cc: Peter Zijlstra <peterz@infradead.org> LKML-Reference: <20101012142351.8485.21823.stgit@dungbeetle.mtv.corp.google.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable@kernel.org
Diffstat (limited to 'net/rds/page.c')
0 files changed, 0 insertions, 0 deletions