Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp282782iog; Fri, 17 Jun 2022 03:38:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uSjD8GkFu2GrQI5N/XmITfyxJKZB/oQr3Qd2xptLYr8pNtyvnvcqZFh3ipGfrIFPzdEOBX X-Received: by 2002:a17:90a:8043:b0:1ea:f2d7:7b7d with SMTP id e3-20020a17090a804300b001eaf2d77b7dmr7678157pjw.2.1655462282125; Fri, 17 Jun 2022 03:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655462282; cv=none; d=google.com; s=arc-20160816; b=kys3bd7O3SH2CBmOU9AKXaRQuYgtEROjtJD6HYue8OzMX9isrla/jZp7efoEKEqyjx G+iHpoli30mS0CMT4E65H+z320WlY7mhKQaqS5j5sWpNQ6/MEisXIraUqeikISmpn2Ar Tv6GW1HBGMKDvoO9UaB7RIgWOkp+VyLW799EeDNQgwwFZATaOFpDsSA1BemniPLPiLR6 jTAjbylKVuKnXsXp3A8LrugSmvzazHKu4Wm9JJeFYfA7kIOf8vTvPgZ6umR1tZ2DsbRh rh9s4YCjFfc4NF6SJWdejaYiHFEiRvdxVd2RdydR2tyGnw9AEmB+oWKh1LU11OvvwxsR 8ydg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Di6jjwEtYEIuKn7aiGrHoXXOSZD8ae7w1xJHMEM6ZCA=; b=jQgvXcipG1DLrC/61RMjsp4/JdDg29kNdKcIDh4rxjsDk9QPf7WmdqOS5A/2Ha9RWR q3sQ1u2IMzOTqPhDVgCE7v9eaLCP6zU7+Rw/Fj2B09PIMPmojwrqp695fzzsOKRK+fqA S4zLnjHKeyC9ChN0L9v//3xW5Xx4l41tb+dm34PXJ4pkS6vBJR1Y7oPJ3tLk12Y/PiAS no12XQ5FLhbhQKR2c2lZ0gEIhzCEU5/zMxSE1UvplsDdpRo28+e0dsbcTddb7qwlWeSi 1XiNkGfLWIDiJFo4vOEW5dGliNEEDHqWhFRPA64flQkpo+S2DCqQsk/94y63OXrsY8cr urJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YP+Nz0Sl; 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 i11-20020a170902cf0b00b00163868019a3si5365495plg.360.2022.06.17.03.37.47; Fri, 17 Jun 2022 03:38:02 -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=YP+Nz0Sl; 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 S1381586AbiFQKcz (ORCPT + 99 others); Fri, 17 Jun 2022 06:32:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381084AbiFQKcu (ORCPT ); Fri, 17 Jun 2022 06:32:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A930F18B02; Fri, 17 Jun 2022 03:32:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 69EFAB82967; Fri, 17 Jun 2022 10:32:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3BCBC3411D; Fri, 17 Jun 2022 10:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655461967; bh=i9jJsMaMcHwPUAYOS2hcoM3x0+hTlHXBOYcA3WInnYY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YP+Nz0SlbXslcMXXiBEpjBrwMXjdao84fZw+fbMhK07JRFp+CtqxhS5WV5Bd+7d9t FfY1KHhZ1enA5XOc6z/kAOV0vwoWVrdT0/zCfW/62DE4wfXndlwWIfJq1zlPYnbdQF T5+OznROi1kwu59eg/PRK+USTCNGzlq1CJGuQpX3oKX+xFuEF2vQ47+8WjfNWbwrvC oVJsah7VJp0w+YKxH4e0Numv9Vbf5QWyxpG0wJdJGWbfMWNgm4IRh4ev33883cUhMc MUF9JviPq0XZtfb3i0lVPG+86VqmwJkfbP1EEOo053sFM7l4sjY76a4iSQyuk7+iWP 24l4sn27+KnLg== Date: Fri, 17 Jun 2022 11:32:44 +0100 From: Filipe Manana To: Oliver Sang Cc: 0day robot , LKML , linux-btrfs , lkp@lists.01.org Subject: Re: [btrfs] 62bd8124e2: WARNING:at_fs/btrfs/block-rsv.c:#btrfs_release_global_block_rsv[btrfs] Message-ID: <20220617103244.GA4042635@falcondesktop> References: <20220608152303.GB31193@xsang-OptiPlex-9020> <20220609094652.GB3668047@falcondesktop> <20220610012659.GA6844@xsang-OptiPlex-9020> <20220612143646.GA35020@xsang-OptiPlex-9020> <20220616024204.GA25633@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220616024204.GA25633@xsang-OptiPlex-9020> X-Spam-Status: No, score=-7.7 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,T_SCC_BODY_TEXT_LINE 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, Jun 16, 2022 at 10:42:04AM +0800, Oliver Sang wrote: > hi, Filipe Manana, > > On Mon, Jun 13, 2022 at 11:50:05AM +0100, Filipe Manana wrote: > > > > Thanks for running the test again Oliver. > > Running the fxmark test on my machines, I can't trigger anything. > > > > May I ask you to run again the test but with the attached debug patch > > on top of it? > > I reran the test by applied your patch upon 62bd8124e2. one dmesg is attached. > > not sure if it supplies enough information? we need some extra effort to > enable below ftrace in our auto-test framework. so if dmesg is good enough, > please let us know, then we can save some efforts :) Thanks a lot! Thanks Oliver. In the meanwhile I found a way to reproduce the issue with a test case from fstests, so I now have everything I need to debug and fix the issue. Thanks! > > > > > Also, if possible, with ftrace enabled like this: > > > > modprobe btrfs > > echo 0 > /sys/kernel/debug/tracing/tracing_on > > echo > /sys/kernel/debug/tracing/trace > > echo $((1 << 24)) > /sys/kernel/debug/tracing/buffer_size_kb > > echo nop > /sys/kernel/debug/tracing/current_tracer > > echo 1 > /sys/kernel/tracing/events/btrfs/btrfs_space_reservation/enable > > > > echo 1 > /sys/kernel/debug/tracing/tracing_on > > > > > > > > echo 0 > /sys/kernel/debug/tracing/tracing_on > > > > Then collect the trace to a file and send it over to me: > > > > cat /sys/kernel/debug/tracing/trace | xz -9 > trace.txt.xz > > > > And of course, the dmesg result as well. > > > > Thanks! > > > > > > > > > > > > > >