[PATCH 0/2] genriq/affinity: two improvement on __irq_build_affinity_masks

From: Ming Lei
Date: Fri Aug 09 2019 - 06:23:41 EST


Hi,

The 1st patch makes __irq_build_affinity_masks() more reliable, such as,
all nodes can be covered in the spread.

The 2nd patch spread vectors on node according to the ratio of this node's
CPU number to number of all remaining CPUs, then vectors assignment can
become more fair. Meantime, the warning report from Jon Derrick can be
fixed.

Please review & comment!

Ming Lei (2):
genirq/affinity: improve __irq_build_affinity_masks()
genirq/affinity: spread vectors on node according to nr_cpu ratio

kernel/irq/affinity.c | 46 +++++++++++++++++++++++++++++++------------
1 file changed, 33 insertions(+), 13 deletions(-)

Cc: Christoph Hellwig <hch@xxxxxx>
Cc: Keith Busch <kbusch@xxxxxxxxxx>
Cc: linux-nvme@xxxxxxxxxxxxxxxxxxx,
Cc: Jon Derrick <jonathan.derrick@xxxxxxxxx>

--
2.20.1