genirq/affinity: Use get/put_online_cpus around cpumask operations
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Aug 2016 14:06:45 +0000 (07:06 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 22 Aug 2016 09:22:44 +0000 (11:22 +0200)
commit3ee0ce2a54dff07d09440723594df89bc1a12e79
tree68a27c262c9f41cf768856730927e9d8467d111b
parent4396f46c8c628329bd35ee4b84140b8b001a11eb
genirq/affinity: Use get/put_online_cpus around cpumask operations

Without locking out CPU mask operations we might end up with an inconsistent
view of the cpumask in the function.

Fixes: 5e385a6ef31f: "genirq: Add a helper to spread an affinity mask for MSI/MSI-X vectors"
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/1470924405-25728-1-git-send-email-hch@lst.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/affinity.c