blk-mq-pci: add a fallback when pci_irq_get_affinity returns NULL
authorChristoph Hellwig <[email protected]>
Thu, 17 Aug 2017 10:24:47 +0000 (12:24 +0200)
committerJens Axboe <[email protected]>
Fri, 18 Aug 2017 14:08:14 +0000 (08:08 -0600)
commitc005390374957baacbc38eef96ea360559510aa7
tree6055f163f22d993bcf03ed965510a45a8d28745b
parent6caa0503c43d65de92309b967b5b1aa289af303b
blk-mq-pci: add a fallback when pci_irq_get_affinity returns NULL

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 <[email protected]>
Cc: [email protected]
Reviewed-by: Omar Sandoval <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/blk-mq-pci.c