From: Shaohua Li Subject: Re: [PATCH] raid10: change the size of resync window for clustered raid Date: Sat, 17 Feb 2018 13:05:55 -0800 Message-ID: <20180217210555.ufd2jj2j2n6mxld7@kernel.org> References: <20180119033756.15340-1-gqjiang@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20180119033756.15340-1-gqjiang@suse.com> Sender: linux-raid-owner@vger.kernel.org To: Guoqing Jiang Cc: linux-raid@vger.kernel.org List-Id: linux-raid.ids On Fri, Jan 19, 2018 at 11:37:56AM +0800, Guoqing Jiang wrote: > 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") > Reported-by: Zhilong Liu > Signed-off-by: Guoqing Jiang applied, thanks! > --- > drivers/md/raid10.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c > index 99c9207899a7..8d7ddc947d9d 100644 > --- a/drivers/md/raid10.c > +++ b/drivers/md/raid10.c > @@ -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) > > /* > -- > 2.13.6 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-raid" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html