]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Remove bogus restriction in irq_move_mask_irq()
authorThomas Gleixner <tglx@linutronix.de>
Sat, 20 Jun 2015 10:05:40 +0000 (12:05 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 20 Jun 2015 17:05:14 +0000 (19:05 +0200)
commit391e44ae5942791c17f9fe51e223758844e5aa75
treef96675637a89a3779cf8dfaf01a46d9eadc0044a
parent3dee93b8f0d7e209f04c68fda47a3a044f3b47b7
genirq: Remove bogus restriction in irq_move_mask_irq()

If an interrupt is marked with the no balancing flag, we still allow
setting the affinity for such an interrupt from the kernel itself, but
for interrupts which move the affinity from interrupt context via
irq_move_mask_irq() this runs into a check for the no balancing flag,
which in turn ends up with an endless storm of stack dumps because the
move pending flag is not reset.

Allow the move for interrupts which have the no balancing flag set and
clear the move pending bit before checking for interrupts with the per
cpu flag set.

Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Link: http://lkml.kernel.org/r/alpine.DEB.2.11.1506201002570.4107@nanos
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/migration.c