Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1113350rwl; Thu, 10 Aug 2023 06:44:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE261jZF2B+lbVngqAyLAzaIeDmm8YpTfCwv6/jsgZc1aU+//TNL4RhpkTXVt+jrU31d8Up X-Received: by 2002:a05:6a21:3d95:b0:137:a9d7:d8cc with SMTP id bj21-20020a056a213d9500b00137a9d7d8ccmr2888346pzc.24.1691675065780; Thu, 10 Aug 2023 06:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691675065; cv=none; d=google.com; s=arc-20160816; b=z3K1gj/daNgN3aLZZ8iTyPLnP+UZJ/IP4TPgHK+ftYwRufsXULoFK2owGDPtqkMfaK nIRwZUhKFAMBrctik1/MFuZg6++fzJ/LG/8KFQ0TVWYcF8Tw9HR6c1qF4C9ke15TFFcE DGt77Yfk7bYjnuPlMdUczgad36dQr4DZgp+lB3YBh0WyK0Y7XS5oreTZNhB60BiNDvcx IrsayfdzKGrCftSRC+UAFXl0Njf5qYDxuf2WhOEMTDtmrMe1T5MwFMEWOIWR50q6hQgF Eq8xOzNoZfOtFouN2JpzHj5U3ol5tICxStfk92P8RPD4UJYox9MpvnBSb2dQaDQWt8fq mYDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TpYnbvJHiBn5GPlTGiJdN6VmHzW1BkIuCw6pPI/4rqY=; fh=4GQdNM/9R2zZC+59Eg7QHvdr4rJGo9J2QwAUVUfgiyc=; b=wm6CvX0XsudNtUDP8qkjVTwBJrCsDAFuZVj0DDNLwpHU3YtgjoHllvNkGS2iBPZWlh szKBxCBjyGsmmq9bIK8sQlhzboFG74jHtNnLro25GGctR6m/4Ypj0T62ZnnODz9RpAex AAID00jKJrbpQmZcE347d7U7UPAn54Hrn+vdRafeBIsYriBRCuWPCvZRgfrnMNyR9HtB 9sbsKAkdiUH/EVahKxt/cPpMQP0sCBSQE6O/E9yHuPaa5QhdbMZhDRwHTigJF97qP+rI QNtfB121JMrNadwFaSUXtwo0DC/yNgjDNGBpk3YjwfGhdnnCN93LoV/fZ6aGmatKyMNa 2Jow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T0rnfuHt; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a056a00234800b00687809ef823si1583884pfj.395.2023.08.10.06.44.12; Thu, 10 Aug 2023 06:44:25 -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=@redhat.com header.s=mimecast20190719 header.b=T0rnfuHt; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234866AbjHJMM3 (ORCPT + 99 others); Thu, 10 Aug 2023 08:12:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234568AbjHJMMX (ORCPT ); Thu, 10 Aug 2023 08:12:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2F161736 for ; Thu, 10 Aug 2023 05:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691669497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=TpYnbvJHiBn5GPlTGiJdN6VmHzW1BkIuCw6pPI/4rqY=; b=T0rnfuHt7SZa7n4XejgIhdblhLGSVRRvR7rHGCQDR3nbCxzmmF0XNpo//9nSJbKprC3038 NyuRLLrerVJrkgrYbPQjzmI+jlSFe+KU/FcmnMk4NQ5r2jjAhA2GkVMgTD71Cn5YZWOu8b LZa4Jxs3F7Ruf7fYF6LdpaKJ0mFRu9A= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-141-CzQVt2oYO0WOF0UNjydOeA-1; Thu, 10 Aug 2023 08:11:34 -0400 X-MC-Unique: CzQVt2oYO0WOF0UNjydOeA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D39D9101A528; Thu, 10 Aug 2023 12:11:33 +0000 (UTC) Received: from o.redhat.com (unknown [10.39.192.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 25D8640C2076; Thu, 10 Aug 2023 12:11:33 +0000 (UTC) From: heinzm@redhat.com To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org Cc: ncroxon@redhat.com, xni@redhat.com Subject: [PATCH 0/3] md raid1: Fix writebehind/writemostly Date: Thu, 10 Aug 2023 14:11:29 +0200 Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 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 md raid1: make first_clone a bool md raid1: add empty line Signed-off-by: Heinz Mauelshagen Tested-by: Xia Ni drivers/md/raid1.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.41.0