From: Douglas Gilbert <dgilbert@interlog.com>
To: Bart Van Assche <bart.vanassche@wdc.com>,
"Martin K . Petersen" <martin.petersen@oracle.com>,
"James E . J . Bottomley" <jejb@linux.vnet.ibm.com>
Cc: linux-scsi@vger.kernel.org, Hannes Reinecke <hare@suse.com>,
Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH] scsi_debug: Use scsi-mq if it has been enabled
Date: Wed, 24 Jan 2018 01:29:00 -0500 [thread overview]
Message-ID: <a569924a-259f-41dc-72a4-e03229a3c844@interlog.com> (raw)
In-Reply-To: <20180124003958.3945-1-bart.vanassche@wdc.com>
On 2018-01-23 07:39 PM, Bart Van Assche wrote:
> Since we want to remove the single queue code from the SCSI core
> at the appropriate time and since scsi-mq performs better than
> scsi-sq even when using only a single hardware queue, use scsi-mq
> if it has been enabled.
>
> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
> Cc: Douglas Gilbert <dgilbert@interlog.com>
> Cc: Hannes Reinecke <hare@suse.com>
> Cc: Christoph Hellwig <hch@lst.de>
Acked: Douglas Gilbert <dgilbert@interlog.com>
> ---
> drivers/scsi/scsi_debug.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
> index a5986dae9020..40df3eea72c8 100644
> --- a/drivers/scsi/scsi_debug.c
> +++ b/drivers/scsi/scsi_debug.c
> @@ -5782,7 +5782,7 @@ static int sdebug_driver_probe(struct device * dev)
> }
> /* Decide whether to tell scsi subsystem that we want mq */
> /* Following should give the same answer for each host */
> - sdebug_mq_active = shost_use_blk_mq(hpnt) && (submit_queues > 1);
> + sdebug_mq_active = shost_use_blk_mq(hpnt);
> if (sdebug_mq_active)
> hpnt->nr_hw_queues = submit_queues;
>
>
next prev parent reply other threads:[~2018-01-24 6:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-24 0:39 [PATCH] scsi_debug: Use scsi-mq if it has been enabled Bart Van Assche
2018-01-24 6:29 ` Douglas Gilbert [this message]
2018-01-26 7:58 ` Christoph Hellwig
2018-01-26 16:10 ` Bart Van Assche
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=a569924a-259f-41dc-72a4-e03229a3c844@interlog.com \
--to=dgilbert@interlog.com \
--cc=bart.vanassche@wdc.com \
--cc=hare@suse.com \
--cc=hch@lst.de \
--cc=jejb@linux.vnet.ibm.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