Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp263254imn; Wed, 27 Jul 2022 23:00:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sh2a3yEbiWunI6yJPXkBOIQDEgih7z/40jjZ1CN4bf3VXybUqphdUgqnyVmpN/Fp1u2teH X-Received: by 2002:a05:6402:249b:b0:43c:8ce6:8890 with SMTP id q27-20020a056402249b00b0043c8ce68890mr8640251eda.74.1658988050733; Wed, 27 Jul 2022 23:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658988050; cv=none; d=google.com; s=arc-20160816; b=DzTZD1jnecmQbXSlTZ7tXKdOzBlJBGoD8QRFL7jjpZ2VorY8jAHq/gawdhX/G+J5KW eKXdJis6OtnJs1mgb05lbNrj/Mblg4P5EOSTkQgoIlCCAQxXZzKTR1P4+HgjtGivYvHV +f+Fs26DjiaIzXLYyJMifQGWbHrUc8FTHBMK26QgAR6KJz3ZBW5H0tN+lFRo93jkr0fX jarZk/Bb8XldzJzAZnTlFI/JH+lIY0H6Mw38feO+34JM+15qmnLOaGGIlJ8m20/ikbF/ zaRcrslEWk2leisQS8YqZX9Eka2iIdh3cFNKk/3w5oPFT/eG9d2LQBFudhmzYp6MZT2p xm+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HoOwpxtwuS6vfJycW3O64eZd101TB3SW8uMg1gd880A=; b=eyuwuUdyBO3/JP32JTj3F6TNRI9wbEA1U6kPpqVjZgLmqYasBaLlWQXV8w6fyPplzb wWi+oFkFf6qc7FfyeHevLbffYFkpQCd1DxNOVLu+YtYb08RMII9iCki27fv6OeYd+eXw N6ThW+EUAZbCnjtLRM3MH8nhlQlRgAVNXetYwgj1tfjC+mXXy8y6e8rgMVo6tcdEOwnl rfK1M+u2llWPFb3QF7k40fhCPGS9e9YFk1ZgPrG0PuE9JorwuEveJq/8NTrFxVtMQ++X dir26sFwLf1HvHxu6G7EyMoAH5iKQFVKqPYpEfoFWkSI43+wIwrjhvyJ/NzW1KIYKzgr Wx+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sTZZPAoP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne36-20020a1709077ba400b0072b9815216bsi21538573ejc.990.2022.07.27.23.00.24; Wed, 27 Jul 2022 23:00:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sTZZPAoP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233013AbiG1F4H (ORCPT + 99 others); Thu, 28 Jul 2022 01:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiG1F4E (ORCPT ); Thu, 28 Jul 2022 01:56:04 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0E7F57267; Wed, 27 Jul 2022 22:56:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 717C1B8229B; Thu, 28 Jul 2022 05:56:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B8E3C433D7; Thu, 28 Jul 2022 05:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658987761; bh=5U82LOFcNwDUA8/kh9KM96VMu6YPACZ2xuM2ixXGbiI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sTZZPAoPUzlf2YGz5otlmpxCLGIm0yJgWlEAPWNQx76ywbCJhQEpT6+Sb/+xMTn73 Auuoto/S1PKk98izJHpQaqr0oGD804HemMuFQeHBpJ0W/TpHzqgaNHP1rmdXpjergh K/jbWNk19DaDI3qzI5a35peKfBUudSfX1uvuxcocGMTcosey5Rol9YthDxJtSpg9GW vWXVjvZei/3kMGHf/7adRQE4YuOHgToDdljNpdH4+m8IjUo6w5g5WF1ivmCybiNbU9 pVHpHbzoCyGbpvNUwgyQaCVKojgtTok1fuDBRQrJd8/ZU1b5ajJug2CkVcwgiSOuQM 2kWiQH6za0yaA== Received: by mail-yb1-f177.google.com with SMTP id o15so1661941yba.10; Wed, 27 Jul 2022 22:56:01 -0700 (PDT) X-Gm-Message-State: AJIora/vNscy/O0DV8m8tK0+5f5djOD9wGnHn5O5M4W3i96H9NFw3wzU Dk6kGkyMkeBud0y40Ga5bUIcFoVNJloYA0G4aNk= X-Received: by 2002:a25:41d6:0:b0:673:817c:e163 with SMTP id o205-20020a2541d6000000b00673817ce163mr2590841yba.561.1658987760160; Wed, 27 Jul 2022 22:56:00 -0700 (PDT) MIME-Version: 1.0 References: <20220727210600.120221-1-logang@deltatee.com> In-Reply-To: <20220727210600.120221-1-logang@deltatee.com> From: Song Liu Date: Wed, 27 Jul 2022 22:55:49 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/5] Bug fix for recent batching change To: Logan Gunthorpe Cc: open list , linux-raid , Christoph Hellwig , Guoqing Jiang , Stephen Bates , Martin Oliveira , David Sloan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 27, 2022 at 2:06 PM Logan Gunthorpe wrote: > > Hey, > > We hit another bug on my recent batching patch. In this case the > bug has never been hit with the current md/md-next branch but > some other patches we were working on changed the timing such > that we hit this bug. It is theoretically possible to hit in > the md/md-next batch so this patchset contains a fix. > > The fix is the last commit. The first four commits are some > basic refactoring that makes the final commit a bit easier. > > A git repo is here and is based on current md/md-next (7a6f9e9cf1): > > https://github.com/sbates130272/linux-p2pmem raid5_batch_quiesce Applied to md-next. Thanks! Song