From: "Ewan D. Milne" <emilne@redhat.com>
To: himanshu.madhani@cavium.com
Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org,
himanshu.madhani@qlogic.com
Subject: Re: [PATCH 3/4] qla2xxx: Add Block Multi Queue functionality.
Date: Mon, 07 Nov 2016 11:43:28 -0500 [thread overview]
Message-ID: <1478537008.32271.43.camel@localhost.localdomain> (raw)
In-Reply-To: <1478277213-3848-4-git-send-email-himanshu.madhani@cavium.com>
On Fri, 2016-11-04 at 09:33 -0700, himanshu.madhani@cavium.com wrote:
> From: Michael Hernandez <michael.hernandez@cavium.com>
>
> Tell the SCSI layer how many hardware queues we have based on the
> number of max queue pairs created. The number of max queue pairs
> created will depend on number of MSI X vector count or number of CPU's
> in a system.
>
> This feature can be turned on via CONFIG_SCSI_MQ_DEFAULT or passing
> scsi_mod.use_blk_mq=Y as a parameter to the kernel
> Queue pair creation depend on module parameter "ql2xmqsupport", which
> need to be enabled to create queue pair.
>
I don't understand this change at all. Setting ->nr_hw_queues causes
the block layer to allocate a number of queues for that Scsi_Host
object, but it does not appear as if this code uses that functionality.
There is nothing in the patch that examines the tag to see which queue
the request came in on, in order to map it to a hardware queue.
Instead, this patch seems to be reworking the mechanism involved in
NPIV vport creation, which creates an entirely separate Scsi_Host
object. The driver was already creating separate request queues to
the card for vports, so what does this have to do with Block-MQ?
-Ewan
next prev parent reply other threads:[~2016-11-07 16:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-04 16:33 [PATCH 0/4] qla2xxx: feature updates for driver himanshu.madhani
2016-11-04 16:33 ` [PATCH 1/4] qla2xxx: Only allow operational MBX to proceed during RESET himanshu.madhani
2016-11-04 16:33 ` [PATCH 2/4] qla2xxx: Fix mailbox command timeout due to starvation himanshu.madhani
2016-11-07 15:53 ` Ewan D. Milne
2016-11-08 17:40 ` Madhani, Himanshu
2016-11-04 16:33 ` [PATCH 3/4] qla2xxx: Add Block Multi Queue functionality himanshu.madhani
2016-11-04 23:00 ` Christoph Hellwig
2016-11-05 2:08 ` Madhani, Himanshu
2016-11-04 23:15 ` kbuild test robot
2016-11-07 16:43 ` Ewan D. Milne [this message]
2016-11-08 17:37 ` Madhani, Himanshu
2016-11-04 16:33 ` [PATCH 4/4] qla2xxx: Fix Target stack handling with Multi-queue changes himanshu.madhani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1478537008.32271.43.camel@localhost.localdomain \
--to=emilne@redhat.com \
--cc=himanshu.madhani@cavium.com \
--cc=himanshu.madhani@qlogic.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox