genirq/cpuhotplug: Set force affinity flag on hotplug migration
authorThomas Gleixner <tglx@linutronix.de>
Mon, 19 Jun 2017 23:37:31 +0000 (01:37 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Jun 2017 16:21:18 +0000 (18:21 +0200)
Set the force migration flag when migrating interrupts away from an
outgoing CPU.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/20170619235445.681874648@linutronix.de
kernel/irq/cpuhotplug.c

index 6f46587a9ce58628d65ef052d9ff8863ef4ad644..e09cb91a7c8bd9c77e15eecb3f8475a73a7b5d0a 100644 (file)
@@ -79,7 +79,7 @@ static bool migrate_one_irq(struct irq_desc *desc)
                brokeaff = true;
        }
 
-       err = irq_do_set_affinity(d, affinity, false);
+       err = irq_do_set_affinity(d, affinity, true);
        if (err) {
                pr_warn_ratelimited("IRQ%u: set affinity failed(%d).\n",
                                    d->irq, err);