From: Eivind Sarto <eivindsarto@gmail.com>
To: neilb@suse.de
Cc: linux-raid@vger.kernel.org
Subject: [PATCH 1/1] md/raid5: allow resync-rebuild requests to run multi-threaded
Date: Mon, 10 Feb 2014 17:52:02 -0800 [thread overview]
Message-ID: <7847F3C0-2B56-48E7-802C-0FBA937FD44F@gmail.com> (raw)
[-- Attachment #1: raid5.patch --]
[-- Type: application/octet-stream, Size: 886 bytes --]
Author: Eivind Sarto <eivind.sarto@gmail.com>
Date: Mon Feb 10 17:42:09 2014
md/raid5: allow resync/rebuild requests to run multi-threaded
Sync operations are currently handled within the sync thread, making the
execution single-threaded. This patch will allow the processing to be done
parallel by raid5d (and a pool of kworkers), significantly increasing
rebuild/resync throughput.
Signed-off-by: Eivind Sarto <eivind.sarto@gmail.com>
--- a/drivers/md/raid5.c 2014-02-10 17:18:43.000000000 -0800
+++ b/drivers/md/raid5.c 2014-02-10 17:21:49.000000000 -0800
@@ -5026,8 +5026,8 @@ static inline sector_t sync_request(stru
bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, still_degraded);
set_bit(STRIPE_SYNC_REQUESTED, &sh->state);
+ set_bit(STRIPE_HANDLE, &sh->state);
- handle_stripe(sh);
release_stripe(sh);
return STRIPE_SECTORS;
next reply other threads:[~2014-02-11 1:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-11 1:52 Eivind Sarto [this message]
2014-02-11 2:13 ` [PATCH 1/1] md/raid5: allow resync-rebuild requests to run multi-threaded 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=7847F3C0-2B56-48E7-802C-0FBA937FD44F@gmail.com \
--to=eivindsarto@gmail.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).