]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
genirq/affinity: assign vectors to all possible CPUs
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Mar 2018 02:27:10 +0000 (23:27 -0300)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 29 Mar 2018 12:50:41 +0000 (07:50 -0500)
commitf0aff9ccc834422db981a2eb505ede27f589ad50
treecd2829d527d2fd8f69ef4905776ca84ceb89c609
parent32625984fbeb3701d77f38a5817946c11801600e
genirq/affinity: assign vectors to all possible CPUs

BugLink: http://bugs.launchpad.net/bugs/1759723
Currently we assign managed interrupt vectors to all present CPUs.  This
works fine for systems were we only online/offline CPUs.  But in case of
systems that support physical CPU hotplug (or the virtualized version of
it) this means the additional CPUs covered for in the ACPI tables or on
the command line are not catered for.  To fix this we'd either need to
introduce new hotplug CPU states just for this case, or we can start
assining vectors to possible but not present CPUs.

Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Tested-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Fixes: 4b855ad37194 ("blk-mq: Create hctx for each present CPU")
Cc: linux-kernel@vger.kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 84676c1f21e8ff54befe985f4f14dc1edc10046b)
Signed-off-by: Jose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
kernel/irq/affinity.c