Skip to contentSkip to conversation

raid10: change the size of resync window for clustered raid

PATCH Applied Guoqing Jiang 2 participants 2 messages Jan 19, 2018 – Feb 17, 2018 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 raid10: change the size of resync window for clustered raid

To align with raid1's resync window, we need to
set the resync window of raid10 to 32M as well.

Fixes 8db87912c9a8 ("md-cluster: Use a small window for raid10 resync")
---
 drivers/md/raid10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid10.c +1 -1
index 99c9207899a7..8d7ddc947d9d 100644
@@ -141,7 +141,7 @@ static void r10bio_pool_free(void *r10_bio, void *data)
 #define RESYNC_WINDOW (1024*1024)
 /* maximum number of concurrent requests, memory permitting */
 #define RESYNC_DEPTH (32*1024*1024/RESYNC_BLOCK_SIZE)
-#define CLUSTER_RESYNC_WINDOW (16 * RESYNC_WINDOW)
+#define CLUSTER_RESYNC_WINDOW (32 * RESYNC_WINDOW)
 #define CLUSTER_RESYNC_WINDOW_SECTORS (CLUSTER_RESYNC_WINDOW >> 9)
 
 /*
Signature · 1 line
2.13.6
Applied
#1 lore raw
Quoted 6 lines · Guoqing Jiang

To align with raid1's resync window, we need to
set the resync window of raid10 to 32M as well.

Fixes 8db87912c9a8 ("md-cluster: Use a small window for raid10 resync")

applied, thanks!

Quoted 24 lines
---
 drivers/md/raid10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/raid10.c +1 -1
index 99c9207899a7..8d7ddc947d9d 100644
@@ -141,7 +141,7 @@ static void r10bio_pool_free(void *r10_bio, void *data)
 #define RESYNC_WINDOW (1024*1024)
 /* maximum number of concurrent requests, memory permitting */
 #define RESYNC_DEPTH (32*1024*1024/RESYNC_BLOCK_SIZE)
-#define CLUSTER_RESYNC_WINDOW (16 * RESYNC_WINDOW)
+#define CLUSTER_RESYNC_WINDOW (32 * RESYNC_WINDOW)
 #define CLUSTER_RESYNC_WINDOW_SECTORS (CLUSTER_RESYNC_WINDOW >> 9)
 
 /*
Signature · 6 lines
2.13.6

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html