]> www.infradead.org Git - users/dwmw2/linux.git/commit
genirq: Ensure affinity masks include one present CPU for each vector
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 6 Oct 2020 11:09:19 +0000 (12:09 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 7 Oct 2020 10:28:14 +0000 (11:28 +0100)
commit50052ed99db8e1ad9b29a5ec79d901b08deef435
tree4b6193ec44f9e97c3c718169626cbc477543cc24
parent63bcaef0e85d21b0d4202fc44f20045bd7011729
genirq: Ensure affinity masks include one present CPU for each vector

Where allocating more MSI-X vectors for a device than there are CPUs in
the system, irq_build_affinity_masks() will end up creating affinities
for some vectors which don't include *any* present CPUs.

Make it try harder to assign at least one present CPU to each vector.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
kernel/irq/affinity.c