Re: [PATCH v4 1/4] block: Add iocontext priority to request

2016-10-15 Thread Hannes Reinecke
On 10/14/2016 08:35 PM, Adam Manzananares wrote: The 10/14/2016 07:54, Hannes Reinecke wrote: On 10/13/2016 09:53 PM, Adam Manzanares wrote: Patch adds an association between iocontext ioprio and the ioprio of a request. This value is set in blk_rq_set_prio which takes the request and the ioc a

expose queue the queue mapping for SCSI drivers

2016-10-15 Thread Christoph Hellwig
In 4.9 I've added support in the interrupt layer to automatically assign the interrupt affinity at interrupt allocation time, and expose that information to blk-mq. This series extents that so that SCSI driver can pass on the information as well. The SCSI part is fairly trivial, although we need

[PATCH 2/3] scsi: allow LLDDs to expose the queue mapping to blk-mq

2016-10-15 Thread Christoph Hellwig
Just hand through the blk-mq map_queues method in the host template. Signed-off-by: Christoph Hellwig --- block/blk-mq-cpumap.c| 1 + drivers/scsi/scsi_lib.c | 10 ++ include/scsi/scsi_host.h | 8 3 files changed, 19 insertions(+) diff --git a/block/blk-mq-cpumap.c b/blo

[PATCH 3/3] smartpqi: switch to pci_alloc_irq_vectors

2016-10-15 Thread Christoph Hellwig
Which cleans up a lot of the MSI-X handling, and allows us to use the PCI IRQ layer provided vector mapping, which we can then expose to blk-mq. Signed-off-by: Christoph Hellwig --- drivers/scsi/smartpqi/smartpqi.h | 2 - drivers/scsi/smartpqi/smartpqi_init.c | 102 +++

[PATCH 1/3] blk-mq: export blk_mq_map_queues

2016-10-15 Thread Christoph Hellwig
This will allow SCSI to have a single blk_mq_ops structure that either lets the LLDD map the queues to PCIe MSIx vectors or use the default. Signed-off-by: Christoph Hellwig --- block/blk-mq.h | 1 - include/linux/blk-mq.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 0/3] target: Bug-fixes for v4.9-rc1

2016-10-15 Thread Christoph Hellwig
Hi Nic, while we're at critical fixes for 4.9 and -stable, can you please pick up this one: http://www.spinics.net/lists/target-devel/msg13463.html -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: expose queue the queue mapping for SCSI drivers

2016-10-15 Thread Hannes Reinecke
On 10/15/2016 10:47 AM, Christoph Hellwig wrote: In 4.9 I've added support in the interrupt layer to automatically assign the interrupt affinity at interrupt allocation time, and expose that information to blk-mq. This series extents that so that SCSI driver can pass on the information as well.

Re: [PATCH 1/3] blk-mq: export blk_mq_map_queues

2016-10-15 Thread Hannes Reinecke
On 10/15/2016 10:47 AM, Christoph Hellwig wrote: This will allow SCSI to have a single blk_mq_ops structure that either lets the LLDD map the queues to PCIe MSIx vectors or use the default. Signed-off-by: Christoph Hellwig --- block/blk-mq.h | 1 - include/linux/blk-mq.h | 1 + 2 files

Re: [PATCH 2/3] scsi: allow LLDDs to expose the queue mapping to blk-mq

2016-10-15 Thread Hannes Reinecke
On 10/15/2016 10:47 AM, Christoph Hellwig wrote: Just hand through the blk-mq map_queues method in the host template. Signed-off-by: Christoph Hellwig --- block/blk-mq-cpumap.c| 1 + drivers/scsi/scsi_lib.c | 10 ++ include/scsi/scsi_host.h | 8 3 files changed, 19 inse

Re: [PATCH 3/3] smartpqi: switch to pci_alloc_irq_vectors

2016-10-15 Thread Hannes Reinecke
On 10/15/2016 10:47 AM, Christoph Hellwig wrote: Which cleans up a lot of the MSI-X handling, and allows us to use the PCI IRQ layer provided vector mapping, which we can then expose to blk-mq. Signed-off-by: Christoph Hellwig --- drivers/scsi/smartpqi/smartpqi.h | 2 - drivers/scsi/sma