From: Mike Snitzer <snitzer@redhat.com>
To: Hannes Reinecke <hare@suse.de>
Cc: axboe@kernel.dk, dm-devel@redhat.com, linux-block@vger.kernel.org
Subject: Re: [PATCH 2/3] dm rq: add DM_MAPIO_DELAY_REQUEUE to delay requeue of blk-mq requests
Date: Wed, 14 Sep 2016 09:51:21 -0400 [thread overview]
Message-ID: <20160914135121.GB29338@redhat.com> (raw)
In-Reply-To: <1bffba61-1643-54ea-2e8d-a24326bd2381@suse.de>
On Wed, Sep 14 2016 at 2:24am -0400,
Hannes Reinecke <hare@suse.de> wrote:
> On 09/13/2016 06:01 PM, Mike Snitzer wrote:
> > Otherwise blk-mq will immediately dispatch requests that are requeued
> > via a BLK_MQ_RQ_QUEUE_BUSY return from blk_mq_ops .queue_rq.
> >
> > Delayed requeue is implemented using blk_mq_delay_kick_requeue_list()
> > with a delay of 5 secs. In the context of DM multipath (all paths down)
> > it doesn't make any sense to requeue more quickly.
> >
> > Signed-off-by: Mike Snitzer <snitzer@redhat.com>
> > ---
> > drivers/md/dm-rq.c | 35 ++++++++++++++++++++---------------
> > include/linux/device-mapper.h | 1 +
> > 2 files changed, 21 insertions(+), 15 deletions(-)
> >
> Hmm. Not sure if I agree with the reasoning for a 5 seconds delay; this
> seems to be a rather broad estimate.
> Won't it delay I/O resumption when we have intermittent path failure (eg
> on iSCSI)?
Are you saying the path would be reinstated via the 'reinstate_path'
message or by table reload? Table reload will kick the requeue list.
'reinstate_path' doesn't (and there isn't an easy way to have dm-mpath
inform dm-rq core to do so -- could add a new function...)
If I can wire up requeue list kick on reinstate_path then the 5 secs is
perfectly fine and won't hurt how quickly IO is resumed once a path
comes back.
next prev parent reply other threads:[~2016-09-14 13:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-13 16:01 [PATCH for-4.9 0/3] allow delayed requeue of blk-mq requests Mike Snitzer
2016-09-13 16:01 ` [PATCH 1/3] blk-mq: introduce blk_mq_delay_kick_requeue_list() Mike Snitzer
2016-09-14 6:22 ` Hannes Reinecke
2016-09-14 6:22 ` Hannes Reinecke
2016-09-14 11:28 ` Bart Van Assche
2016-09-14 13:45 ` Mike Snitzer
2016-09-14 15:04 ` Jens Axboe
2016-09-14 15:13 ` Mike Snitzer
2016-09-13 16:01 ` [PATCH 2/3] dm rq: add DM_MAPIO_DELAY_REQUEUE to delay requeue of blk-mq requests Mike Snitzer
2016-09-14 6:24 ` Hannes Reinecke
2016-09-14 6:24 ` Hannes Reinecke
2016-09-14 13:51 ` Mike Snitzer [this message]
2016-09-13 16:01 ` [PATCH 3/3] dm mpath: delay the requeue of blk-mq requests while all paths down Mike Snitzer
2016-09-14 6:25 ` Hannes Reinecke
2016-09-14 6:25 ` Hannes Reinecke
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=20160914135121.GB29338@redhat.com \
--to=snitzer@redhat.com \
--cc=axboe@kernel.dk \
--cc=dm-devel@redhat.com \
--cc=hare@suse.de \
--cc=linux-block@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.