linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jes.Sorensen@redhat.com
To: neilb@suse.de
Cc: linux-raid@vger.kernel.org
Subject: [PATCH] 07reshape5intr: Set speed_limit_min to be able to reduce resync speed below 1000
Date: Wed, 11 Jul 2012 09:53:06 +0200	[thread overview]
Message-ID: <1341993186-8207-1-git-send-email-Jes.Sorensen@redhat.com> (raw)

From: Jes Sorensen <Jes.Sorensen@redhat.com>

We need to set speed_limit_min accordingly, otherwise setting
speed_limit_max below 1000 will have no effect.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 tests/07reshape5intr |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/07reshape5intr b/tests/07reshape5intr
index 6a26bf0..71ef2c7 100644
--- a/tests/07reshape5intr
+++ b/tests/07reshape5intr
@@ -20,6 +20,7 @@ do
 
   mdadm -CR $md0 -amd -l5 -c $chunk -n$disks --assume-clean $devs
   mdadm $md0 --add $dev6
+  echo 20 > /proc/sys/dev/raid/speed_limit_min
   echo 20 > /proc/sys/dev/raid/speed_limit_max
   mdadm --grow $md0 -n $[disks+1]
   check reshape
@@ -27,6 +28,7 @@ do
   mdadm --stop $md0
   mdadm --assemble $md0 $devs $dev6
   check reshape
+  echo 1000 > /proc/sys/dev/raid/speed_limit_min
   echo 2000 > /proc/sys/dev/raid/speed_limit_max
   check wait
   echo check > /sys/block/md0/md/sync_action
-- 
1.7.1


             reply	other threads:[~2012-07-11  7:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11  7:53 Jes.Sorensen [this message]
2012-07-12  6:40 ` [PATCH] 07reshape5intr: Set speed_limit_min to be able to reduce resync speed below 1000 NeilBrown

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=1341993186-8207-1-git-send-email-Jes.Sorensen@redhat.com \
    --to=jes.sorensen@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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;
as well as URLs for NNTP newsgroup(s).