All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Kashyap Desai <kashyap.desai@broadcom.com>, linux-scsi@vger.kernel.org
Cc: Douglas Gilbert <dgilbert@interlog.com>
Subject: Re: [PATCH v4 4/5] scsi_debug: add new defer type for mq poll
Date: Mon, 1 Mar 2021 08:32:15 +0100	[thread overview]
Message-ID: <9aa25fed-44e0-810e-9fdb-1f802fddb611@suse.de> (raw)
In-Reply-To: <20210215074048.19424-5-kashyap.desai@broadcom.com>

On 2/15/21 8:40 AM, Kashyap Desai wrote:
> From: Douglas Gilbert <dgilbert@interlog.com>
> 
> Add a new sdeb_defer_type enumeration: SDEB_DEFER_POLL for requests
> that have REQ_HIPRI set in cmd_flags field. It is expected that
> these requests will be polled via the mq_poll entry point which
> is driven by calls to blk_poll() in the block layer. Therefore
> timer events are not 'wired up' in the normal fashion.
> 
> There are still cases with short delays (e.g. < 10 microseconds)
> where by the time the command response processing occurs, the delay
> is already exceeded in which case the code calls scsi_done()
> directly. In such cases there is no window for mq_poll() to be
> called.
> 
> Add 'mq_polls' counter that increments on each scsi_done() called
> via the mq_poll entry point. Can be used to show (with 'cat
> /proc/scsi/scsi_debug/<host_id>') that blk_poll() is causing
> completions rather than some other mechanism.
> 
> This patch is improvement over previous patch
> "scsi_debug: iouring iopoll support"
> 
> Changes since version 3
>    - Fix IO hang issue. Do not return from schedule_resp. Use new defer
>      type for mq poll to queue the REQ_HIPRI IOs.
> 
> Changes since version 2 [sent 20210206 to linux-scsi list]
>    - the sdebug_blk_mq_poll() callback didn't cope with the
>      uncommon case where sqcp->sd_dp is NULL. Fix.
> 
> Changes since version 1 [sent 20210201 to linux-scsi list]
>    - harden SDEB_DEFER_POLL which broke under testing
>    - add mq_polls counter for debug output
> 
> Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
> Tested-by: Kashyap Desai <kashyap.desai@broadcom.com>
> 
> Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare@suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer

  reply	other threads:[~2021-03-01  7:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15  7:40 [PATCH v4 0/5] io_uring iopoll in scsi layer Kashyap Desai
2021-02-15  7:40 ` [PATCH v4 1/5] add io_uring with IOPOLL support " Kashyap Desai
2021-02-15  7:40   ` Kashyap Desai
2021-02-15  7:40 ` [PATCH v4 2/5] megaraid_sas: iouring iopoll support Kashyap Desai
2021-02-15  7:40 ` [PATCH v4 3/5] scsi_debug : " Kashyap Desai
2021-02-15  7:40 ` [PATCH v4 4/5] scsi_debug: add new defer type for mq poll Kashyap Desai
2021-03-01  7:32   ` Hannes Reinecke [this message]
2021-02-15  7:40 ` [PATCH v4 5/5] scsi: set shost as hctx driver_data Kashyap Desai
2021-03-01  7:32   ` Hannes Reinecke
2021-03-04  3:27 ` [PATCH v4 0/5] io_uring iopoll in scsi layer Martin K. Petersen

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=9aa25fed-44e0-810e-9fdb-1f802fddb611@suse.de \
    --to=hare@suse.de \
    --cc=dgilbert@interlog.com \
    --cc=kashyap.desai@broadcom.com \
    --cc=linux-scsi@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.