Skip to content

Commit

Permalink
raid10: change the size of resync window for clustered raid
Browse files Browse the repository at this point in the history
To align with raid1's resync window, we need to
set the resync window of raid10 to 32M as well.

Fixes: 8db8791 ("md-cluster: Use a small window for raid10 resync")
Reported-by: Zhilong Liu <[email protected]>
Signed-off-by: Guoqing Jiang <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
  • Loading branch information
GuoqingJiang authored and Shaohua Li committed Feb 17, 2018
1 parent 3acdb7b commit 4b242e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/raid10.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

/*
Expand Down

0 comments on commit 4b242e9

Please sign in to comment.