path: root/block/blk-mq-pci.c
AgeCommit message (Collapse)Author
2019-05-31block: Fix blk_mq_*_map_queues() kernel-doc headersBart Van Assche
This patch avoids that the kernel-doc script complains about these function headers when building with W=1. Cc: Hannes Reinecke <> Cc: Keith Busch <> Fixes: ed76e329d74a ("blk-mq: abstract out queue map") # v5.0. Fixes: e42b3867de4b ("blk-mq-rdma: pass in queue map to blk_mq_rdma_map_queues") # v5.0. Reviewed-by: Chaitanya Kulkarni <> Signed-off-by: Bart Van Assche <> Signed-off-by: Jens Axboe <>
2019-04-30block: switch all files cleared marked as GPLv2 to SPDX tagsChristoph Hellwig
All these files have some form of the usual GPLv2 boilerplate. Switch them to use SPDX tags instead. Reviewed-by: Chaitanya Kulkarni <> Signed-off-by: Christoph Hellwig <> Signed-off-by: Jens Axboe <>
2018-11-07blk-mq: initial support for multiple queue mapsJens Axboe
Add a queue offset to the tag map. This enables users to map iteratively, for each queue map type they support. Bump maximum number of supported maps to 2, we're now fully able to support more than 1 map. Reviewed-by: Hannes Reinecke <> Reviewed-by: Keith Busch <> Reviewed-by: Sagi Grimberg <> Signed-off-by: Jens Axboe <>
2018-11-07blk-mq: abstract out queue mapJens Axboe
This is in preparation for allowing multiple sets of maps per queue, if so desired. Reviewed-by: Hannes Reinecke <> Reviewed-by: Bart Van Assche <> Reviewed-by: Keith Busch <> Signed-off-by: Jens Axboe <>
2018-07-09blk-mq: code clean-up by adding an API to clear set->mq_mapMinwoo Im
set->mq_map is now currently cleared if something goes wrong when establishing a queue map in blk-mq-pci.c. It's also cleared before updating a queue map in blk_mq_update_queue_map(). This patch provides an API to clear set->mq_map to make it clear. Signed-off-by: Minwoo Im <> Signed-off-by: Jens Axboe <>
2018-03-27blk-mq: Allow PCI vector offset for mapping queuesKeith Busch
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 <> Cc: <> Cc: <> Signed-off-by: Keith Busch <> Reviewed-by: Ming Lei <> Signed-off-by: Jens Axboe <>
2017-08-18blk-mq-pci: add a fallback when pci_irq_get_affinity returns NULLChristoph Hellwig
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 <> Cc: Reviewed-by: Omar Sandoval <> Signed-off-by: Jens Axboe <>
2017-03-29blk-mq-pci: Fix two spelling mistakesSagi Grimberg
Signed-off-by: Sagi Grimberg <> Signed-off-by: Jens Axboe <>
2016-09-19blk_mq: linux/blk-mq.h does not include all the headers it depends onStephen Rothwell
and building block/blk-mq-pci.o should depend on CONFIG_BLOCK Fixes: 973c4e372c8f ("blk-mq: provide a default queue mapping for PCI device") Signed-off-by: Stephen Rothwell <> Reviewed-by: Christoph Hellwig <> Signed-off-by: Jens Axboe <>
2016-09-15blk-mq: provide a default queue mapping for PCI deviceChristoph Hellwig
Signed-off-by: Christoph Hellwig <> Reviewed-by: Keith Busch <> Signed-off-by: Jens Axboe <>