Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3021406rwl; Tue, 27 Dec 2022 03:16:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXsQ7NvkmosL5EJmbYhh29QJimaGBpdtyUhV2gXgp28f5QsqZ6+C1y3gJVpH0bYSjZYtplEd X-Received: by 2002:a17:902:bcc5:b0:189:cc58:77a8 with SMTP id o5-20020a170902bcc500b00189cc5877a8mr24193969pls.46.1672139776075; Tue, 27 Dec 2022 03:16:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672139776; cv=pass; d=google.com; s=arc-20160816; b=wYAu6HIKCTszluESvLt8jONdcKrxiCuzZbpq9sNXJP7u8+eyMLYttmAhTq6PuY86RX FAP50Qy1zWFAbcEDWfOXfjiiLsLqGU9ONKymbPsrMhuC1+6HQHKZ5kY6g5O/C1kS9xRy fZaZPky4Fd2INUDjVdgxcVPMGwwfoGf646U/a5CgJjSzWHgb084S6vdMDbspWyWSIq+x 0wMunFBy1SrOJEgYG5bWZB1Yw4sAnApLb87HTCU5WthdoLx/D4B6IvOhq6en9fdl2XB/ TUC9TZa+AzW2+6WsuNZGbaf+LkVgz9DxSEv2Cajs2b+ysH8/m0U8tVVj03wp+4Gykm/M 3eXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:subject:from:references :cc:to:content-language:user-agent:date:message-id:dkim-signature; bh=SYhZQ5krNVcShi3mwhlFA1OGMUa6K1U4i4okKwv5fiE=; b=TpDX3UY868FZjwIlWWnpzQKUAsu9vCOuEY2KkoOCu6gSKD1y7Jh8qif09A7lNrzQ/O GEgqiF2tr3jT7tnSi6IuaXkQBd99/GFic5eX4uvBOZBE3cBZjrwe6j/lS9MPqwu4vvZ8 PUHI6vEDJAIoizfztHJJ4UeABNUlJxJVf+ru2GRskQRB3RBov6dVv5xg3x/TvLvkVCjN EEfvy1GDg5UrhOE/dHFTgDF7wxJYHpUkIR8FKrVYcKVvwTuZOVM1t3tHyMX9Py5cqQk1 4KRuibfqN9NR/6J8Y+B3vA9M/xrjJhCU+wzmkypo9qOdhx06GjpTsEKY6H9tTAyfrxuS JPwg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=UcZLytaG; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a170902b49500b001910f9d152esi13163162plr.271.2022.12.27.03.16.06; Tue, 27 Dec 2022 03:16:16 -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=@suse.com header.s=selector1 header.b=UcZLytaG; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbiL0LDP (ORCPT + 67 others); Tue, 27 Dec 2022 06:03:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiL0LDM (ORCPT ); Tue, 27 Dec 2022 06:03:12 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2086.outbound.protection.outlook.com [40.107.6.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EEA9766F; Tue, 27 Dec 2022 03:03:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N5+Y1Vb8NV13QHvfCfwNNWJ7c7aU3x5azThhdVExupZaNAo4xShKgESHPQ4zMCCdx+rdzdxbsvlmtBdkahqVO1y2wEPLGIsN1zwSyXZFWdhdkIh7LU1yE2fvuf0Jag3/mZvn+pB2jo1rI2sQsnZLTxqIR3W79AAJZr61gCPTHLjOxB7nU7Ryii+EuCTuIZf+RMRKKF/HgLYV9MKVbHuoLXyFwrCwSRPXSitBeP8wB5+ee4TE11brnXppfStaTDxH6/4zv5Fx5TdI8CpL/lA40IaWWIJ5h7LnzUd8FT07qjqUPcunOEMDkvYd+p/V2MXt4P5luqYeBpDBGoxwYZc8gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SYhZQ5krNVcShi3mwhlFA1OGMUa6K1U4i4okKwv5fiE=; b=OH9KLxq3TA1YLXW+S5NR2Gp0awbg4ukEUfd1UQ5aDE9kixsbBCPVvvBNmW0kHAT63x1z18IKId0P7kMqbzpMJUG7oU/JyWfy2q3bnpcsMo+3zlaqyTZuGXvL8jP05CGQ//ZF8/2ESeSBvBY8CX6o9NnvWFx4FA/lcfCza9FNnrE40oiAp1rrDK490t6vsbG+E+CR241mhiHExlKpZfZCwbZzjY5rsa+UOuPD/Yqep1Le5R7HEUEZUqdxC4qiibAi1MBkW5TLWjJPNr+m6DPmj2EVAQxQzCUpsVD+8fwtIH/ZTRW1/6JpOs8IIEQNZxF+KOCwrHyqHabNFis1jdR1cw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SYhZQ5krNVcShi3mwhlFA1OGMUa6K1U4i4okKwv5fiE=; b=UcZLytaGwCVz2m21o1lhsBtScORJCvnEbZbJyILWquN3+n8KZqtck7PDheOm8zQK9/C4wGGqqfisewVSpe4EbJpmm1zqQ8fiGDtaOFcudP5jcrKijHvnptD1mwuC3EEcng7jU5gHavG7zlIxap62oZqJ5m9wuV7ZYbhQclO96nhLawGMqnb8WRskzePR8zXl5eMan8ZmK6fNNED80FYQtYn1Nm6wRQBqQ/dU4QktYSWG9aZ+zvoqiS2kloXKZpszbWPyK9gk0gAVezdZWkq7Xd8+ZURj3CijtMBycg/ClFYmAp9DdFJ9TvuASqYxVZ2JHPtYcQ0JZMgEBdk4gIsTIg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from AS8PR04MB8465.eurprd04.prod.outlook.com (2603:10a6:20b:348::19) by DBBPR04MB7836.eurprd04.prod.outlook.com (2603:10a6:10:1f3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.16; Tue, 27 Dec 2022 11:03:07 +0000 Received: from AS8PR04MB8465.eurprd04.prod.outlook.com ([fe80::5c50:6906:e9a4:5b9f]) by AS8PR04MB8465.eurprd04.prod.outlook.com ([fe80::5c50:6906:e9a4:5b9f%8]) with mapi id 15.20.5944.016; Tue, 27 Dec 2022 11:03:07 +0000 Content-Type: multipart/mixed; boundary="------------5191fERIl5RaybdDbaitkB0P" Message-ID: <7d2edc1d-922b-763c-3122-0a6f81c3454e@suse.com> Date: Tue, 27 Dec 2022 19:02:58 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-Language: en-US To: Mikhail Gavrilov , Qu Wenruo Cc: dsterba@suse.com, Btrfs BTRFS , Linux List Kernel Mailing References: <18b5fa1e-7d1e-4560-c98b-d7ac5fc87c3a@gmx.com> <0036622d-53f7-eaba-f720-6dd9bdca28ad@gmx.com> <41734bdb-2df0-6596-01b6-76a7dfd05d64@gmx.com> <24cd64b2-4536-372c-91af-b425d2f6efd4@gmx.com> From: Qu Wenruo Subject: Re: [6.2][regression] after commit 947a629988f191807d2d22ba63ae18259bb645c5 btrfs volume periodical forced switch to readonly after a lot of disk writes In-Reply-To: X-ClientProxiedBy: SJ0PR13CA0165.namprd13.prod.outlook.com (2603:10b6:a03:2c7::20) To AS8PR04MB8465.eurprd04.prod.outlook.com (2603:10a6:20b:348::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8465:EE_|DBBPR04MB7836:EE_ X-MS-Office365-Filtering-Correlation-Id: fac13818-f7da-424f-2ddf-08dae7f9ef49 X-LD-Processed: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba,ExtFwd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AiM7gYB1D+ydTKUW+92w27ByMMgjVozouwIcbTNljZxvudJSR7CCE7k0PQvAe5RHhmC1GFEE0+c53D9Ou8gePHq66ilgCn9oojP1tQYpRll3u9kg7TEq2m1rmALSXOxkhEJNgylSZEJmybH3MfZ6B7TypvQkZm9LvI33pgUsyzLBa1p4ipcMRO0/kg6IscmoilQOSlCkeZF0+sTKRZhyRsTnHUJ/Z+UcW10kD0Aizgs7w7mOo05IxMSnMmkB48s3o3xM0P0MvX3NWWIrrA/ydkGZbXawmv5dmZMIfl6kqg3sptxcLp788PAk/HNLiaqgOA/r0TBEVsrJ7xvKKtqQYTYF6uxm8C2LcQJ7FrWDQ7X/AjEpwmctcjRv53eyjXF06ym6vEJf9D2eUbBDTdmO9ZxpyTOliQfCmnv8dU19vz/1gWbxmUYD+V/MQ2vEsRng6q5yuGtkS3dLCoR9OjWJGSu3G4S0nwX9LKTesDsiCufFhsKM/hysC2IZF5YqghIStgWz6JLWTtLLYmCTb1Ux8jUifYUPH3KpAq83IYxaP2ubYU7lTLSMzok39vlkiSHwvVxzRnxsDZrOTdhrGbKuur4GSGJdzv55sflyA7IR0v0F/J+LLMq8O9hxuYCVaVGVonjX40Z6Lgi8YypvQvINvEqw2HRckLUqov6lDb277jWmaPqP+RYxJIHfVktD37NIinIKiZ3qACwW8iCkaIn+C4jlI1bmpykkuq8fH3s/ERp+2whoZF2s6vCw1Vo+20uW6EgXf7vsa9IPmxyuD0VQXA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8465.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(366004)(376002)(136003)(39860400002)(346002)(451199015)(478600001)(6666004)(6512007)(33964004)(186003)(966005)(53546011)(6486002)(6506007)(83380400001)(2616005)(235185007)(41300700001)(4326008)(8676002)(54906003)(38100700002)(110136005)(36756003)(31696002)(86362001)(8936002)(31686004)(66556008)(66476007)(5660300002)(316002)(2906002)(66946007)(518174003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TStHTHYyL0czQzFWdlJGUnh6QkhCYkQzeEdNRE9pTUxVMTJhcWtSODNvemlI?= =?utf-8?B?WFE5N256MmllRU90Z2FwQW01RzRReWF2YVFHWStKRUw2WWMvTk9VVHkwV1pu?= =?utf-8?B?YkhHUmljdXNVdXN1cWVFK2c3SVVqSXFrQUhMRUNyQW83R3dkMXVyT2ZTWmNJ?= =?utf-8?B?QUhEdjFS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DF6ekNEZXV6MEoy?= =?utf-8?B?aXFUbE81WkVDTWo2L05ZSU0rR2o5ZG9RbkF2S2t1WGRkU0p5VFh2clRvTHVC?= =?utf-8?B?d0gyU0JyV0RlQVd2czZPOVRaNTBWR0xqVnJ3RDk4NVJIRGk0U016YldOQmJT?= =?utf-8?B?ckY0dmZJS29sUEkvSWRsa2swaWN3RnNGYk1aUTl0SjZtZHppOFVQNWtVV2Np?= =?utf-8?Q?uo8DmsdlfRPvbjLyZAn9WCQ=3D?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: fac13818-f7da-424f-2ddf-08dae7f9ef49 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8465.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Dec 2022 11:03:07.6269 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yhSV040WFCZrliqcydC3r8caMPwdzwLDza5PcqA+DeG5vCqQiTe9K5Ihr5tMwjpi X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7836 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLACK autolearn=no 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 --------------5191fERIl5RaybdDbaitkB0P Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2022/12/27 18:19, Mikhail Gavrilov wrote: > On Tue, Dec 27, 2022 at 10:13 AM Qu Wenruo wrote: >> The result doesn't make sense... >> >> A lot of read_block_for_search() and btrfs_read_node_slot() are >> triggering the warning. >> >> But inside both functions, we have just set the numbers before the call: >> >> In read_block_for_search() we got: >> >> check.has_first_key = true; >> check.level = parent_level - 1; >> check.transid = gen; >> check.owner_root = root->root_key.objectid; >> >> Thus at least check.has_first_key is always true, and the WARN_ON() >> should never get triggered. >> The same applies to btrfs_read_node_slot(). >> >> It looks like something involved in memory barrier. >> >> Anyway, the latest debug patch has extra mb to be sure. >> >> And despite the possible fix, could you provide extra info of your >> build? Include: > Kernel log is attached. All answers are below. > >> - Hardware (mostly CPU and RAM spec) > This is laptop ASUS ROG Strix G15 Advantage Edition G513QY-HQ007 > with CPU AMD Ryzen 9 5900HX and GPU Radeon RX 6800M I have a similar laptop (G14), only GPU is different (RTX3060), and I failed to reproduce this so far... > I upgraded RAM to Crucial CT32G4SFD832A DDR4 - 32GB x 2 (64GB) and SSD > to Seagate FireCuda 530 ZP4000GM3A013 4TB x 2 (8TB) > https://linux-hardware.org/?probe=0e063e5fd5 > >> - Toolchain used to compile the kernel (include compiler and its version) > $ rpm -q binutils > binutils-2.39-6.fc38.x86_64 > > $ ld --version > GNU ld version 2.39-6.fc38 > > $ rpm -q gcc > gcc-12.2.1-4.fc38.x86_64 My gcc is only a small version behind (12.2.0). Thus none of the hardware seems suspicious at all... Anyway I have attached my last struggle for the weird problem. For now, I have no idea why this can even happen... Thanks, Qu > > $ gcc --version > gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4) > > $ rpm -q make > make-4.3-11.fc37.x86_64 > > $ make --version > GNU Make 4.3 > >> - Kernel config > Attached with debug logs. > --------------5191fERIl5RaybdDbaitkB0P Content-Type: text/x-patch; charset=UTF-8; name="0001-btrfs-add-extra-debug-for-level-mismatch.patch" Content-Disposition: attachment; filename="0001-btrfs-add-extra-debug-for-level-mismatch.patch" Content-Transfer-Encoding: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