blk-mq-pci: add a fallback when pci_irq_get_affinity returns NULL
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Aug 2017 10:24:47 +0000 (12:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Aug 2017 00:12:20 +0000 (17:12 -0700)
commitd8c20af0085898f9c818dd599b0afb0d0c99dab2
tree85981b663d364fea5fbf7f9cba9cecdf0e6abd35
parent6c7f3756d072050d612e5c5c04108f90f1985435
blk-mq-pci: add a fallback when pci_irq_get_affinity returns NULL

commit c005390374957baacbc38eef96ea360559510aa7 upstream.

While pci_irq_get_affinity should never fail for SMP kernel that
implement the affinity mapping, it will always return NULL in the
UP case, so provide a fallback mapping of all queues to CPU 0 in
that case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-mq-pci.c