Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2529207rwn; Fri, 16 Sep 2022 11:42:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7fdGUaWQrlPNndmOq3ucSpFfrrzkkJgLcnjyJVWTCWac/lpX2eTEMtN04FdU0Hyz+Qi5T+ X-Received: by 2002:a05:6a00:21d1:b0:542:b916:c48f with SMTP id t17-20020a056a0021d100b00542b916c48fmr6665481pfj.56.1663353769067; Fri, 16 Sep 2022 11:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663353769; cv=none; d=google.com; s=arc-20160816; b=Hk5VhgmWbYA6TZFamHEkyk7yQ7KTm7p0TbsSvjydLYSth80MlfBWYxgpz5atWYG4nE IklZ8ilG3G8Uy/c18dl3XR8j5HtVPNsSsa/6zCLZeKyF5hfLwXOZRk0YGtIRJHkymnK1 5Ne2/bk5d5fp9P4o8nHLdiyIubNnmAbQQ2eyMO7qVsqKd0CITbOHEh/NsPY79lMjdDhg bjpFlXLUYQ2f9ezIhbjEs7iqxNzu3VpEkSR2JZdQKwHelbWxrFENkXrTga6KHmM5JwNM /oOvgMOM4Uc8FfF0SEHywOl5CmA5cOtRNXRNHzLQAvnzAxh+tB7iUC6N2+wO99bVaFJH 3/jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:in-reply-to :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=kJIc7NqcYR1MP3Jy8goJn5/NXsx5nBAkLTWuvTAL5Fk=; b=PIsW3vM4rZR50bLXYu9Sv/MnDrjJv+z+VftkO31fA+wsZE2JvMGxMfMIZSBaBQky9v w5A7PNP7Xdqgw+fggDSeNncRsN1RBAaPx+OP3okIRgWSqAk62GUA9duMr0huOqqUf1Nu 3Zv6YHScRcMBmSZqBlQnMJCKlMo3q4OrbPMXgezDo9N5Yym+O5UiCZLd+6GhL2D9I79Q 19KV36jeZCEMfj1rnmg+dmWfp1PKI7WdI6dV3MbQS2PhrpIgllDSmo1x/6F3Hq8m5khB L28/71fNpHr2GfnMk4o05qljDLyTJSHG0R6TPlZAcSjl++g2/y22B8/NjAj6eqfm3cBV l8vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=AaIrBbZE; 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=deltatee.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g190-20020a636bc7000000b004393c8ec2c8si3371781pgc.49.2022.09.16.11.42.37; Fri, 16 Sep 2022 11:42:49 -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=@deltatee.com header.s=20200525 header.b=AaIrBbZE; 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=deltatee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229495AbiIPSfw (ORCPT + 99 others); Fri, 16 Sep 2022 14:35:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbiIPSft (ORCPT ); Fri, 16 Sep 2022 14:35:49 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D53AC979C4; Fri, 16 Sep 2022 11:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:From:References:Cc:To: MIME-Version:Date:Message-ID:content-disposition; bh=kJIc7NqcYR1MP3Jy8goJn5/NXsx5nBAkLTWuvTAL5Fk=; b=AaIrBbZEl3QaLssyMYrqkucXOc VvwN8gndZkxkUjLcYdZ0Ve0+SpJgdVz3MlUMgUSchTR19j4crJj7sTMqCEfLZBzxzevYh8SUrAeaC PJDKhSb+Zp2LhRllXy/6G5mD8eTHhjxU8+Fezp09BnlA6hyllghGx1aGZGyrvdbWt6FOdZmTniIvU YKZpxjUSwu3HMCq2FgOkvJPsUTtk2tpKP/GaJxCrhsGjmHjBXgtAiFk4qcTBAR2TRY73EQmdvt0F/ t4z5xd+oqLs07sIsCNInBD1o9q/GCh8kwNYXhGao90wwFdxLmb08ZjzfY83Chtgs3Bq7BCOipj7tO EhO/VfGA==; Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1oZGBU-003JOk-6m; Fri, 16 Sep 2022 12:35:29 -0600 Message-ID: Date: Fri, 16 Sep 2022 12:35:23 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Content-Language: en-CA To: Yu Kuai , song@kernel.org, guoqing.jiang@linux.dev, pmenzel@molgen.mpg.de Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com References: <20220916113428.774061-1-yukuai1@huaweicloud.com> <20220916113428.774061-2-yukuai1@huaweicloud.com> From: Logan Gunthorpe In-Reply-To: <20220916113428.774061-2-yukuai1@huaweicloud.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: yukuai1@huaweicloud.com, song@kernel.org, guoqing.jiang@linux.dev, pmenzel@molgen.mpg.de, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: [PATCH v3 1/5] md/raid10: factor out code from wait_barrier() to stop_waiting_barrier() X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-09-16 05:34, Yu Kuai wrote: > From: Yu Kuai > > Currently the nasty condition in wait_barrier() is hard to read. This > patch factors out the condition into a function. > > There are no functional changes. > > Signed-off-by: Yu Kuai > Acked-by: Paul Menzel Reviewed-by: Logan Gunthorpe