]> git.baikalelectronics.ru Git - kernel.git/commit
genirq/affinity: Fix calculating vectors to assign
authorKeith Busch <keith.busch@intel.com>
Wed, 19 Apr 2017 23:51:10 +0000 (19:51 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 Apr 2017 14:03:09 +0000 (16:03 +0200)
commit58d25d8bcf82a3c77a2ff3fd4c7453e6d3527056
tree3b3bceecb9f7936319f0266740e92a8e89cb7277
parentab0390a6c3a29004abf0a9ac5225ae9926c5d066
genirq/affinity: Fix calculating vectors to assign

The vectors_per_node is calculated from the remaining available vectors.
The current vector starts after pre_vectors, so we need to subtract that
from the current to properly account for the number of remaining vectors
to assign.

Fixes: 5823bd598d7 ("irq/affinity: Fix extra vecs calculation")
Reported-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Link: http://lkml.kernel.org/r/1492645870-13019-1-git-send-email-keith.busch@intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/affinity.c