All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Bart Van Assche <bart.vanassche@sandisk.com>,
	Mike Snitzer <snitzer@redhat.com>
Cc: dm-devel@redhat.com, Hannes Reinecke <hare@suse.com>,
	Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH 04/13] dm-rq: Adjust requeuing delays
Date: Thu, 27 Apr 2017 07:48:12 +0200	[thread overview]
Message-ID: <4e2af3ef-ae37-104f-8f47-57ec84def2db@suse.de> (raw)
In-Reply-To: <20170426183728.10821-5-bart.vanassche@sandisk.com>

On 04/26/2017 08:37 PM, Bart Van Assche wrote:
> Reduce the requeue delay in dm_requeue_original_request() from 5s
> to 0.5s to avoid that this delay slows down failover or failback.
> Increase the requeue delay in dm_mq_queue_rq() from 0.1s to 0.5s
> to reduce the system load if immediate requeuing has been requested
> by the dm driver.
> 
> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
> Cc: Hannes Reinecke <hare@suse.com>
> Cc: Christoph Hellwig <hch@lst.de>
> ---
>  drivers/md/dm-rq.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c
> index 0b081d170087..c53debdcd7dc 100644
> --- a/drivers/md/dm-rq.c
> +++ b/drivers/md/dm-rq.c
> @@ -280,7 +280,7 @@ static void dm_requeue_original_request(struct dm_rq_target_io *tio, bool delay_
>  	if (!rq->q->mq_ops)
>  		dm_old_requeue_request(rq);
>  	else
> -		dm_mq_delay_requeue_request(rq, delay_requeue ? 5000 : 0);
> +		dm_mq_delay_requeue_request(rq, delay_requeue ? 500/*ms*/ : 0);
>  
>  	rq_completed(md, rw, false);
>  }
> @@ -755,7 +755,7 @@ static int dm_mq_queue_rq(struct blk_mq_hw_ctx *hctx,
>  		/* Undo dm_start_request() before requeuing */
>  		rq_end_stats(md, rq);
>  		rq_completed(md, rq_data_dir(rq), false);
> -		blk_mq_delay_run_hw_queue(hctx, 100/*ms*/);
> +		blk_mq_delay_run_hw_queue(hctx, 500/*ms*/);
>  		return BLK_MQ_RQ_QUEUE_BUSY;
>  	}
>  
> 
Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		   Teamlead Storage & Networking
hare@suse.de			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)

  reply	other threads:[~2017-04-27  5:48 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-26 18:37 [PATCH 00/13] Device mapper and dm-mpath patches Bart Van Assche
2017-04-26 18:37 ` [PATCH 01/13] dm-mpath: Split activate_path() Bart Van Assche
2017-04-26 18:37   ` Bart Van Assche
2017-04-26 18:37 ` [PATCH 02/13] dm-mpath: Avoid that path removal can trigger an infinite loop Bart Van Assche
2017-04-26 18:37   ` Bart Van Assche
2017-04-27  5:46   ` [dm-devel] " Hannes Reinecke
2017-04-27  5:46     ` Hannes Reinecke
2017-04-27 15:11     ` Bart Van Assche
2017-04-27 15:13       ` Hannes Reinecke
2017-04-27 15:13         ` [dm-devel] " Hannes Reinecke
2017-04-27 15:36         ` Mike Snitzer
2017-04-26 18:37 ` [PATCH 03/13] dm-mpath: Delay requeuing while path initialization is in progress Bart Van Assche
2017-04-26 18:37   ` Bart Van Assche
2017-04-27  5:47   ` [dm-devel] " Hannes Reinecke
2017-04-27  5:47     ` Hannes Reinecke
2017-04-26 18:37 ` [PATCH 04/13] dm-rq: Adjust requeuing delays Bart Van Assche
2017-04-27  5:48   ` Hannes Reinecke [this message]
2017-04-26 18:37 ` [PATCH 05/13] dm-mpath: Make it easier to analyze requeuing behavior Bart Van Assche
2017-04-27  5:49   ` Hannes Reinecke
2017-04-26 18:37 ` [PATCH 06/13] dm-rq: Check blk_mq_register_dev() return value Bart Van Assche
2017-04-27  5:49   ` Hannes Reinecke
2017-04-26 18:37 ` [PATCH 07/13] dm, persistence: Remove an unused argument from dm_block_manager_create() Bart Van Assche
2017-04-27  5:49   ` Hannes Reinecke
2017-04-26 18:37 ` [PATCH 08/13] dm: Verify suspend_locking assumptions at runtime Bart Van Assche
2017-04-27  5:50   ` Hannes Reinecke
2017-04-27  6:05   ` Hannes Reinecke
2017-04-26 18:37 ` [PATCH 09/13] dm-mpath: Verify locking " Bart Van Assche
2017-04-27  5:50   ` Hannes Reinecke
2017-04-26 18:37 ` [PATCH 10/13] dm: Introduce enum dm_queue_mode Bart Van Assche
2017-04-27  5:51   ` Hannes Reinecke
2017-04-26 18:37 ` [PATCH 11/13] dm-mpath: Micro-optimize the hot path Bart Van Assche
2017-04-27  6:36   ` Hannes Reinecke
2017-04-26 18:37 ` [PATCH 12/13] dm-mpath: Introduce assign_bit() Bart Van Assche
2017-04-27  6:40   ` Hannes Reinecke
2017-04-26 18:37 ` [PATCH 13/13] dm, dm-mpath: Make it easier to detect unintended I/O request flushes Bart Van Assche
2017-04-27  6:41   ` 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=4e2af3ef-ae37-104f-8f47-57ec84def2db@suse.de \
    --to=hare@suse.de \
    --cc=bart.vanassche@sandisk.com \
    --cc=dm-devel@redhat.com \
    --cc=hare@suse.com \
    --cc=hch@lst.de \
    --cc=snitzer@redhat.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 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.