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: 3412386b ("irq/affinity: Fix extra vecs calculation") Reported-by: NAndrei Vagin <avagin@virtuozzo.com> Signed-off-by: NKeith Busch <keith.busch@intel.com> Link: http://lkml.kernel.org/r/1492645870-13019-1-git-send-email-keith.busch@intel.comSigned-off-by: NThomas Gleixner <tglx@linutronix.de>
Showing
想要评论请 注册 或 登录