]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - block/blk-mq-pci.c
blk-mq: Allow PCI vector offset for mapping queues
authorKeith Busch <keith.busch@intel.com>
Tue, 27 Mar 2018 15:39:06 +0000 (09:39 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Mar 2018 03:25:36 +0000 (21:25 -0600)
commitf23f5bece686a76598335141a091934f7eb0998c
treed523d0195bb2955637e5d607332029e7476b3e02
parent3148ffbdb9162baa28545809d675d3bf9339d6a1
blk-mq: Allow PCI vector offset for mapping queues

The PCI interrupt vectors intended to be associated with a queue may
not start at 0; a driver may allocate pre_vectors for special use. This
patch adds an offset parameter so blk-mq may find the intended affinity
mask and updates all drivers using this API accordingly.

Cc: Don Brace <don.brace@microsemi.com>
Cc: <qla2xxx-upstream@qlogic.com>
Cc: <linux-scsi@vger.kernel.org>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-pci.c
drivers/nvme/host/pci.c
drivers/scsi/qla2xxx/qla_os.c
drivers/scsi/smartpqi/smartpqi_init.c
include/linux/blk-mq-pci.h