Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2163222rdg; Sun, 13 Aug 2023 12:05:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGC+k8KLt8lw+sUcUUYJvo9W9nM2PKRFJT6ptmt5g3nH/jK7w3EjMaokKcgS4unatB/nBAd X-Received: by 2002:aa7:d48b:0:b0:523:38f5:c5ad with SMTP id b11-20020aa7d48b000000b0052338f5c5admr5969281edr.20.1691953541215; Sun, 13 Aug 2023 12:05:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691953541; cv=none; d=google.com; s=arc-20160816; b=SoReXCOtIxoTHSRGW9cNTPGVt805Wr7XDkesuXhD1mz5qlwTYMrRyOCoVRilzf2und hsKi0g8uoKFNb2ELEgwofP93z45W4ivcaF4jCM9dUd4gOyJpP4d2Mvt0WP/hbY1asFQX Sw9lHRp76aKlE9qsUssHtKEZT/V6XQhkMIBP/d/SxWYeMh5Pg5Wd6zw63isQgVdi3XHm MRYgBH36WYisZicXcWnMnKM8pTcM3VoVKNHoSOXhbtEy9k9009OPRYLagYRi3mr0Nvms 0TyZKOGUwzCXN2TDG7wqL1I8rPdwnHo9PAp1Vk7cE6MBbg1sGdBKy89MAB7KPR7dayo/ 6/zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zhon2Yog6P3UilBkkKmO2k64y0bLe6Gyj915qO5LESg=; fh=ntQkSABUF00OY0+K81rWtGuAt+dhgPcYKrpj57XVSp4=; b=fPkTpIubXWx7hxrlFjse0YK2Ka6Pb1SZ84xT3UTbMfExXZsDEl7rrU7I+UBpNE2zbU Rtdrkr8VWbjPOU9WfVY8vNXZx+3UlkRcg1XVd3lRd9mIMcsaUkYEFgRUfCMby8ewyrsO tPW/KTx2cRcGPCt0IrKyTOHfXwVvalBhn3BdTNGRcYk1KZpkVvgkr/C39lB2Nft6lYQE IrCrDZRmE8LV7/YKycaoRxcdRXPisleNJd6XGP/DE5rem5xD6owbqg+eEK0bZDlpsR2c m/Z7ZQV6b8NKcdMkAB+yi5IPJYgDceddXWfpYVML0mSn3hYavfts+AdLVAORcbtr80Uv Kt+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d8hgvqWM; 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 k7-20020aa7d8c7000000b0052307566ec6si6448288eds.300.2023.08.13.12.05.16; Sun, 13 Aug 2023 12:05:41 -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=d8hgvqWM; 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 S230281AbjHMR5L (ORCPT + 99 others); Sun, 13 Aug 2023 13:57:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbjHMR5K (ORCPT ); Sun, 13 Aug 2023 13:57:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02C2A10D; Sun, 13 Aug 2023 10:57:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 897B460F75; Sun, 13 Aug 2023 17:57:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4DB7C433C9; Sun, 13 Aug 2023 17:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691949431; bh=k5lD7vCeRXwPAKQRKx6H/8mU6AyZG6pRFYxxrUzGUFY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=d8hgvqWMP9KJhO6evZJ7EiRTpe20swIMGOfy8NxJ2TV/uYI6r98uD4bvS+Uk0Qj/Q QLMvAMQjqEufCPjLpZvXjXc3ON7193u19+lKdgOo0wLS74RnhX4OP5I4r89ZLNSpCR uDR/EAfMixQ48IFwgm54qJzKZKi9pCvatPEVtiBcPDQI22d/H86NGL4WSBjB6GQIwM HMX1lrPqUXL1FYyyp/Sh6UJEU6oakgRU1CXHpmDnOBoRFUgLTrO0KDpD6V5GcbTVBs cxQiSEKPzyOXWgtMm20Aofm6DWOdpbuXFMW+cdVPuboXlvVrZ9hXZP7EOQQ/BNzgFE rjXtiPPNOiyCg== Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-4fe0d5f719dso5876395e87.2; Sun, 13 Aug 2023 10:57:11 -0700 (PDT) X-Gm-Message-State: AOJu0Yw0i06V6Z747wfgzgVQL+Qs9JC9kf1wHKZuRO0Yf+PsISfKcP1s zpYhzmPzZjNvvrW7ECL4HzZ2ynHUuOiYSRwi2Jc= X-Received: by 2002:a05:6512:3b1:b0:4fe:589a:857d with SMTP id v17-20020a05651203b100b004fe589a857dmr4578778lfp.34.1691949429853; Sun, 13 Aug 2023 10:57:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Song Liu Date: Sun, 13 Aug 2023 21:56:56 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/3] md raid1: Fix writebehind/writemostly To: heinzm@redhat.com Cc: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, ncroxon@redhat.com, xni@redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 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 Thu, Aug 10, 2023 at 4:12=E2=80=AFPM wrote: > > From: heinzm > > Writemostly was only respected if set on the first leg. > > Set on any other leg(s) but not on the first one did > not enable writebehind at all. > > Fix changes the logic using the already defind bool writebehind. > > Whilst on this, also make first_clone a bool as write_behind for > consistency and add an empty line. > > Patches pass the MD test suite. > > heinzm (3): > md raid1: allow writebehind to work on any leg device set WriteMostly 1/3 looks good. But please resend with your full name. > md raid1: make first_clone a bool > md raid1: add empty line 2/3 and 3/3 are not necessary. I would rather keep git-blame clean. Thanks, Song > > Signed-off-by: Heinz Mauelshagen > Tested-by: Xia Ni > > drivers/md/raid1.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > -- > 2.41.0 >