Skip to content
Commit 7e0c5086 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

hrtimer: migration: do not check expiry time on current CPU



The timer migration code needs to check whether the expiry time of the
timer is before the programmed clock event expiry time when the timer
is enqueued on another CPU because we can not reprogram the timer
device on the other CPU. The current logic checks the expiry time even
if we enqueue on the current CPU when nohz_get_load_balancer() returns
current CPU. This might lead to an endless loop in the expiry check
code when the expiry time of the timer is before the current
programmed next event.

Check whether nohz_get_load_balancer() returns current CPU and skip
the expiry check if this is the case.

The bug was triggered from the networking code. The patch fixes the
regression http://bugzilla.kernel.org/show_bug.cgi?id=13738
(Soft-Lockup/Race in networking in 2.6.31-rc1+195)

Cc: Arun Bharadwaj <arun@linux.vnet.ibm.com
Tested-by: default avatarJoao Correia <joaomiguelcorreia@gmail.com>
Tested-by: default avatarAndres Freund <andres@anarazel.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 507e1231
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment