Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D1C4C433F5 for ; Mon, 3 Jan 2022 19:53:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236257AbiACTxj (ORCPT ); Mon, 3 Jan 2022 14:53:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236218AbiACTxi (ORCPT ); Mon, 3 Jan 2022 14:53:38 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E37FDC061785 for ; Mon, 3 Jan 2022 11:53:37 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id n30so27693410eda.13 for ; Mon, 03 Jan 2022 11:53:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Jb1cHx7NUtCc6wHz+H//KWrS5XMdnXN9boixbWetpl0=; b=h0EwKNAb+U4bBwBEPKIkk8XVcD8jMiaBkWAXL7UVpFZMTORnFzqTm3rVdnUsHhumPO SCgKOm+88n8KuPRd4NzwSVxLYY3SO2T331HWgyZRymDn8qMU9NThYYRc6HOS76ZBOaqm urEz86v4gzL6HI7VZ7GDz0XEzMDoJ6V8C5JLY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Jb1cHx7NUtCc6wHz+H//KWrS5XMdnXN9boixbWetpl0=; b=5KxVN97biX/E796j9XqtPNkny/zah7AAUo6e64K0jGcN+ZN+ymUzv5M85MUtbOcwsO yYJWMvh3cQ7jgSQ6w3cbLjgybue/aaH82dIIFtDTql/bW5xk5NRXYCJo/U9qwLoPrTPo Wen+zHTsRTXrPj4OturFZynRtmAjqHbaRsm3OupnKNJEzqnUQQEAf7IfbVH4PqJ5hBzf BQtQpxmkd+UcJ2BTmAVZdZK8cp8GshEHzpbpBf1i7KWGx4IqXntziLkqc+9Oz+jc17qC Kf1D89npspf7h577fvC1brO/Fu0EnUQUJK0Tc/xNE6gzoNHgPlPmdAToi7iwGX9fnYs3 hnUQ== X-Gm-Message-State: AOAM531+Ljx5Zze8qN9iBMmleIVqZoDLFK85gDfetOrq9FvcDQoDVMWI cEWCatDJraC8cgHIQbbW8tk9vUGIPZHNrbAG X-Google-Smtp-Source: ABdhPJxm2//yjwo6lPAMlUaGx2Ma3/WLjNX8bzeAVAXcq1/OOmYjw1nUoz4Pm54HOkvHR3PBJcJd2w== X-Received: by 2002:aa7:d5c5:: with SMTP id d5mr46188778eds.251.1641239616372; Mon, 03 Jan 2022 11:53:36 -0800 (PST) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com. [209.85.128.49]) by smtp.gmail.com with ESMTPSA id ne39sm11030443ejc.142.2022.01.03.11.53.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Jan 2022 11:53:35 -0800 (PST) Received: by mail-wm1-f49.google.com with SMTP id d198-20020a1c1dcf000000b0034569cdd2a2so383122wmd.5 for ; Mon, 03 Jan 2022 11:53:35 -0800 (PST) X-Received: by 2002:a05:600c:4f13:: with SMTP id l19mr40031036wmq.152.1641239614943; Mon, 03 Jan 2022 11:53:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Mon, 3 Jan 2022 11:53:18 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Regression] md/raid1: write-intent logging/bitmap issue since fd3b6975e9c1 - v5.16-rc1 To: Norbert Warmuth , Jens Axboe Cc: Guoqing Jiang , Song Liu , linux-raid@vger.kernel.org, Linux Kernel Mailing List Content-Type: multipart/mixed; boundary="0000000000003d9ee005d4b2e0b0" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000003d9ee005d4b2e0b0 Content-Type: text/plain; charset="UTF-8" [ Jens wasn't cc'd for some reason but was the signer-off-on the patch you bisected to. Added him to the cc. I'll bounce the original separately, as I also don't see this on lore.kernel.org - it might not have gotten there yet ] On Mon, Jan 3, 2022 at 11:30 AM Norbert Warmuth wrote: > > Please verify and either revert or fixup fd3b6975e9c1 if my analysis is > correct. Can you check if moving the WriteMostly bit to the "do behind I/O?" section fixes things for you? IOW, something like the attached patch.. Warning: This is very much a "Money see, monkey do" patch. I'm not really familiar with the raid1 code ] But yeah, if you see corruption and there isn't an absolutely trivial fix for this, we should revert. Linus --0000000000003d9ee005d4b2e0b0 Content-Type: text/x-patch; charset="US-ASCII"; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kxz3mh010 IGRyaXZlcnMvbWQvcmFpZDEuYyB8IDMgKystCiAxIGZpbGUgY2hhbmdlZCwgMiBpbnNlcnRpb25z KCspLCAxIGRlbGV0aW9uKC0pCgpkaWZmIC0tZ2l0IGEvZHJpdmVycy9tZC9yYWlkMS5jIGIvZHJp dmVycy9tZC9yYWlkMS5jCmluZGV4IDdkYzgwMjZjZjZlZS4uODU1MDU0MjRmN2E0IDEwMDY0NAot LS0gYS9kcml2ZXJzL21kL3JhaWQxLmMKKysrIGIvZHJpdmVycy9tZC9yYWlkMS5jCkBAIC0xNDk2 LDEyICsxNDk2LDEzIEBAIHN0YXRpYyB2b2lkIHJhaWQxX3dyaXRlX3JlcXVlc3Qoc3RydWN0IG1k ZGV2ICptZGRldiwgc3RydWN0IGJpbyAqYmlvLAogCQlpZiAoIXIxX2Jpby0+Ymlvc1tpXSkKIAkJ CWNvbnRpbnVlOwogCi0JCWl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