linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] md/raid5: allow resync-rebuild requests to run multi-threaded
@ 2014-02-11  1:52 Eivind Sarto
  2014-02-11  2:13 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Eivind Sarto @ 2014-02-11  1:52 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid

[-- 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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-11  2:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-11  1:52 [PATCH 1/1] md/raid5: allow resync-rebuild requests to run multi-threaded Eivind Sarto
2014-02-11  2:13 ` NeilBrown

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).