Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1782152rwl; Mon, 26 Dec 2022 04:48:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXv1W7IpsfDpV0vLQRxsXClB054DZthNerTyJxNz7rfgyyqCudBcxgyWDvk+nrudRma2zg/z X-Received: by 2002:a17:906:3bc7:b0:7c0:db61:dbd5 with SMTP id v7-20020a1709063bc700b007c0db61dbd5mr14707698ejf.62.1672058901358; Mon, 26 Dec 2022 04:48:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672058901; cv=none; d=google.com; s=arc-20160816; b=AMlWd70WMk5E10l/9za+wdqdpZmrQqYUvb5bZycsyielwhuZFrSmptZmD4kujkJ1vE pqs0tKsqS0TqRO/YFjpwUrKiPculos67zaBWGIOONXYfdrrpKbJGXKwxU7xBwq6vSoHj /wOxtfxfIynYMe4qlejqamWBGtzyVoLsXsDp8OsjgAiXsl1eqWl6qtCUoDLJ/BPg3pB8 PsQq7jIutlVPpw44uig8qIVNugcss9djSX/KzuGKFVZ5nM41dM7IgSb4lQg00nqvRgQ2 hT6KR9vOHYaBOwZyWsa6yWVcm9WwqsrHHoXyBp3+4oK4cD9Aoxp0ZUojxGdXk97MKH8I MTNA== 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=z9d+Du5QUXSuYQWwD7dmsLyKR+Vfc18ibGUUnNESGS8=; b=tO45D80a5ubkCNQ9fCKGIZ9dQjmUy5KOU4tgPnhmMxU0aMc2cUUQKGQugoJuwdrmli HKn/bGEm/uUN5u+5uBYbuX/yBle147sNgFqYSJyIQSiKcNzzurEszfNPH3wOYdneINuT Us86DquiOTf02Q+dkil7gWn/5+ZBLs82w6G655/Ap6IQuTdzGXsQPIavJQ5s0tqCesYq 2dfWjzQfCPTagLs/hxZzdEvIH8bHGU+XoOgFeZ8OuSiKWKG+97RU6BGyJWpdv9/lqysa d4AdOz7B2mS7QWaVQlkJKVDmdHYML4Q6aWhsvZ7aiL2CwAQWHaxgRlPGiyiiJx9/aWGm Tz/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DSFXLigQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd16-20020a1709069b9000b008366ae33ec2si8812779ejc.595.2022.12.26.04.48.05; Mon, 26 Dec 2022 04:48:21 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=DSFXLigQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232037AbiLZMPa (ORCPT + 67 others); Mon, 26 Dec 2022 07:15:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbiLZMP1 (ORCPT ); Mon, 26 Dec 2022 07:15:27 -0500 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50ABA6340; Mon, 26 Dec 2022 04:15:27 -0800 (PST) Received: by mail-qk1-x733.google.com with SMTP id g8so5125057qkl.2; Mon, 26 Dec 2022 04:15:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=z9d+Du5QUXSuYQWwD7dmsLyKR+Vfc18ibGUUnNESGS8=; b=DSFXLigQQ1LccRjWTRNQDCW7YoJpQJUfD54eexHDVJrWxjGzGTXHxDeFNF0DIfj4tk KkeTFfJOWLkT7BV5MgtoV6UTDXypTD8F3n1xW4D3F2RgXwHrUBmheaUUF8Fn8fPmVYC7 +6k1yzcOtBSTCMT33/V4sAchitOsQtgsothMn6GDWWN/nKx8SnlJxsg1WHYSf/wYSCOf sN7UywRxfj2BFi+THvDYPM80yZJzxtZe5k7m5eFkrjti/GNuuKgARbre6byLQ+odfOxf 3P7v2gfPfUWCUneH+Yo3F//ql3ok2GNqW6/1T6jTJOhBGLag5vjVxSO4whZDpM/X4woe wtfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=z9d+Du5QUXSuYQWwD7dmsLyKR+Vfc18ibGUUnNESGS8=; b=KaXF2jiN8AnIJIyor5+nCBg2S833xtOEp/VByUB/w/letoXjX0kNJONIEuwO1imUl7 rIlHnxvgZSIAwUzllRcgSazYLjBCzjWI9xR9DntpyDo9Ira1HF3Sy+M8OTvLOswqQOkv ubKPJQcfG0Fe0DOiJG3uNhFQw7VntBlkhbE1TUROZ8t3xrDW6X75V13IWm9S7JHfhorb PLehs6G0TQNSsytI2fsmiHvAwBDkoIr7w61I3us+5FrGp/SL3RYLY1H2iNL51fWUOdbT ot5K9c5bkpCsmTmw8aueWXR2tNcaOKXmEH1snwe0pE5ESd/HahPIenBmF9sjLX6qs+kT HHpg== X-Gm-Message-State: AFqh2kqUz1eU8SK+kIIogdlEGetwpI3XPk2gSbEb+OaeV0PoWW/SISuZ DxJaptHQIQQ9ZjILYG7NUQ9vcqvik6QM+wqhdDA= X-Received: by 2002:a37:6397:0:b0:6ff:b44d:4856 with SMTP id x145-20020a376397000000b006ffb44d4856mr881396qkb.205.1672056926060; Mon, 26 Dec 2022 04:15:26 -0800 (PST) MIME-Version: 1.0 References: <18b5fa1e-7d1e-4560-c98b-d7ac5fc87c3a@gmx.com> <0036622d-53f7-eaba-f720-6dd9bdca28ad@gmx.com> <41734bdb-2df0-6596-01b6-76a7dfd05d64@gmx.com> In-Reply-To: <41734bdb-2df0-6596-01b6-76a7dfd05d64@gmx.com> From: Mikhail Gavrilov Date: Mon, 26 Dec 2022 17:15:15 +0500 Message-ID: Subject: Re: [6.2][regression] after commit 947a629988f191807d2d22ba63ae18259bb645c5 btrfs volume periodical forced switch to readonly after a lot of disk writes To: Qu Wenruo Cc: wqu@suse.com, dsterba@suse.com, Btrfs BTRFS , Linux List Kernel Mailing Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Mon, Dec 26, 2022 at 5:11 PM Qu Wenruo wrote: > > > While at the caller, the structure is properly passed in. > > So there is something wrong between the endio function and the check. > > I have created the v2 version patch to debug, please apply without any > previous debug patch. > > Meanwhile this really looks like a race, thus I'm not 100% sure if my > debug patch would reduce the possibility to reproduce. > > Your bisect should be the determining evidence, for the worst case we > can revert the offending patch. > > Thank you very much for all of the testing, it really helps a lot. > Qu > Looks like v2 version patch is missed in last message -- Best Regards, Mike Gavrilov.