Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1578481ybi; Sat, 25 May 2019 05:12:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyne6ovFE3RkdpjdciOBokHB89gTk6nAQSBufpSZTRSWv+6WWfstosoXtLU1kwgVM58M+do X-Received: by 2002:a17:90a:f48f:: with SMTP id bx15mr15672047pjb.85.1558786320965; Sat, 25 May 2019 05:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558786320; cv=none; d=google.com; s=arc-20160816; b=Hf6LlUtKPBQAZeJj4wGFeNnCj61+GNaZK7vxz4RD1qUSt/ZFMecjph8rKe7dk8VPzs LnHHoujEoBddUGG20+oejt5Zr4dfG3j7A7u1ig5lVesgx/G2joB0bgk9cjjW295wkBVb kWAwpt9kz1tRgznKJLE1kjZInhq431SayQPIUXhmBp77RdhHsv+1vAcSAarL/XqyUki8 ycd2K/u5GufpquxxC2yG+Ijlct+SaL/B+D99sSqpEz4qKz2w5HNjpGo6TzzenEjJtnvT FyNvvCnljfx5ShA98neTG3dngE8xyS0XnJKGPULwNMfdfOmdGAd3s/kwg3IMurcLhJoM +ujw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jGhc96dCDEYIiS8+DY7qSOBUXcibAnz5vMrQBYhlH2o=; b=zPbN43TEvWP4IPNhp6ygPSZG8CchHlX7+2WRYpa0cwAWA1ID8OsSzgIOIHECwMJ7Ed 7Xsn3rzFpDUFWgNk0rHzOtxNBEUuMWEbZ6QS1cJL+F0qfVxFBS+CczE8shonEe0KpkiM on2CRaMtb8yt7EOWXyiRvtC0HMwrRy2IpHCyVsKTJifWDYFMZo6RcS/mv7CUQ/Zv1184 toxC8B2On85s4bv3Hwz+6mmY14Zg0DTZxIXhwE5EvKyjC3ett0hoSLSOaiptddaLM91H Ht4v5XfHCabimeFZ70KWxGP9C+b+PK0Qk/iqWniRk9e5hcbKO6zEf3AN96wWVJE1YlF/ xYOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20si7186630pju.92.2019.05.25.05.11.44; Sat, 25 May 2019 05:12:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726887AbfEYMJZ (ORCPT + 99 others); Sat, 25 May 2019 08:09:25 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:42620 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbfEYMJZ (ORCPT ); Sat, 25 May 2019 08:09:25 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 941F98029F; Sat, 25 May 2019 14:09:12 +0200 (CEST) Date: Sat, 25 May 2019 14:08:35 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Dan Williams , Nigel Croxon , Xiao Ni , Song Liu Subject: Re: [PATCH 4.19 108/114] Revert "Dont jump to compute_result state from check_result state" Message-ID: <20190525120835.GA2975@xo-6d-61-c0.localdomain> References: <20190523181731.372074275@linuxfoundation.org> <20190523181740.646499661@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190523181740.646499661@linuxfoundation.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2019-05-23 21:06:47, Greg Kroah-Hartman wrote: > From: Song Liu > > commit a25d8c327bb41742dbd59f8c545f59f3b9c39983 upstream. > > This reverts commit 4f4fd7c5798bbdd5a03a60f6269cf1177fbd11ef. > > Cc: Dan Williams > Cc: Nigel Croxon > Cc: Xiao Ni > Signed-off-by: Song Liu > Signed-off-by: Greg Kroah-Hartman We normally reject patches without changelog, and this has none. Why make exception here? Pavel > > --- > drivers/md/raid5.c | 19 +++++++++++++++---- > 1 file changed, 15 insertions(+), 4 deletions(-) > > --- a/drivers/md/raid5.c > +++ b/drivers/md/raid5.c > @@ -4221,15 +4221,26 @@ static void handle_parity_checks6(struct > case check_state_check_result: > sh->check_state = check_state_idle; > > - if (s->failed > 1) > - break; > /* handle a successful check operation, if parity is correct > * we are done. Otherwise update the mismatch count and repair > * parity if !MD_RECOVERY_CHECK > */ > if (sh->ops.zero_sum_result == 0) { > - /* Any parity checked was correct */ > - set_bit(STRIPE_INSYNC, &sh->state); > + /* both parities are correct */ > + if (!s->failed) > + set_bit(STRIPE_INSYNC, &sh->state); > + else { > + /* in contrast to the raid5 case we can validate > + * parity, but still have a failure to write > + * back > + */ > + sh->check_state = check_state_compute_result; > + /* Returning at this point means that we may go > + * off and bring p and/or q uptodate again so > + * we make sure to check zero_sum_result again > + * to verify if p or q need writeback > + */ > + } > } else { > atomic64_add(STRIPE_SECTORS, &conf->mddev->resync_mismatches); > if (test_bit(MD_RECOVERY_CHECK, &conf->mddev->recovery)) { > -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html