Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6625464rwr; Tue, 9 May 2023 18:54:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6NOGiIhHwRBE7AVBrei0rNz3LFOCjLRpCW5hCqCR/PmrmTu9h/f+1xmQ+7u1q9N/V5TWsG X-Received: by 2002:a17:902:f7d6:b0:1a9:f425:5409 with SMTP id h22-20020a170902f7d600b001a9f4255409mr16256301plw.49.1683683678000; Tue, 09 May 2023 18:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683683677; cv=none; d=google.com; s=arc-20160816; b=IlJBBCeSPFI8kUpZKRrajB3zvh3hKCxQtaXRh2sS+ez+AtpxwbSfNJsC4iiomPikHS MTpQXAxlScHARgo6dFAh+DmTpNGeQ96sdEo5C/TLOEZtiMOdOJVcJMpUNXVLvpQmCkrK ncr+dvbz6ELi4RV1JV1RC9pX7GA+IU4uB13GEe5Fs8FAqPNfUoojK62PB8VE+zbQbPdr bOgBulQf7HaFS5DIdDSPVWXYt7uIivbW+c6NwvhtVtapt1fsXad7CoYU66vbu8GLqLLV FBiGz/aFJYHgT9EjX/0yZDBOAEH0Uvd2FC5PlgG9+42SUmjtMOQMjAkUdyALsaF4rE6t XptQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=n2OhR/8mqrfmCbzZz2bw4Ksr3yVT2zjV2VuBFia7p0M=; b=03nsYtWeLdgQ8rlFUsGi0OtbNCM3xSbNLCGUmLK/kgh7GgLcX1h9x8dmgofB9koVVT pURbaTSndNY7/PBDmh/QURsmflDimNNW2YY1uIUxCMy0Bagz7OMFDmkayFPQoP9wBD78 O/TWWOESPbNb+fza/3S7WQg/t+fmsGRr144LQFlfTRvnW5lKh99GHCLkAHsbZcPyYJBW yF772E7TdM12KI2x5QhQT8FqracoYPzf+PLt/A81wpJcflSzdXahTVdPfdX/GdqfXTpd ISedFvQWCPC8OHcagzZlHNS3smUtPUZp3jecfS8ewGT7BT89nskV2iOGaH3Ke5InAZOh oQ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=3gduoDpV; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a170902a70a00b001a27afc07d9si2725324plq.146.2023.05.09.18.54.23; Tue, 09 May 2023 18:54:37 -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=@infradead.org header.s=bombadil.20210309 header.b=3gduoDpV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235081AbjEJBKp (ORCPT + 99 others); Tue, 9 May 2023 21:10:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbjEJBKo (ORCPT ); Tue, 9 May 2023 21:10:44 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F59049C1; Tue, 9 May 2023 18:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=n2OhR/8mqrfmCbzZz2bw4Ksr3yVT2zjV2VuBFia7p0M=; b=3gduoDpVeCKaG6IgJCxOVeZWee PCg7JZnh3Qo24BhIaWRQpLstjtCLm1uTC8v9odGmPJzmXEvsO/uGVA1IFFNz0IIdFCy7XFeDtv9mC wbnyQbVRS8VUYsO8xUZBrnRkudgWTWeLnVsOPkvQH10ADrFMt0I3OA4t6JG7kFDNNNdhBtgzQOvW/ 13STx74ghdMZMaE38YvYCWeIea740XYs9boIiQejTYPkGtyUqXRDgI2Lj+EKI4PXUtHwUKA6x+a5I CIh2bvm6SVR4aBWz5BKWysfgJvQRlmvqS2Z8axLbMu/p5wVEnuslHAMDNcayhb1guBzMkdIOCfmVR pNKLCkjw==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pwYLo-004fBx-2i; Wed, 10 May 2023 01:10:40 +0000 Message-ID: Date: Tue, 9 May 2023 18:10:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 15/32] bcache: move closures to lib/ Content-Language: en-US To: Kent Overstreet , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org Cc: Kent Overstreet , Coly Li References: <20230509165657.1735798-1-kent.overstreet@linux.dev> <20230509165657.1735798-16-kent.overstreet@linux.dev> From: Randy Dunlap In-Reply-To: <20230509165657.1735798-16-kent.overstreet@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 5/9/23 09:56, Kent Overstreet wrote: > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 39d1d93164..3dba7a9aff 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1618,6 +1618,15 @@ config DEBUG_NOTIFIERS > This is a relatively cheap check but if you care about maximum > performance, say N. > > +config DEBUG_CLOSURES > + bool "Debug closures (bcache async widgits)" > + depends on CLOSURES > + select DEBUG_FS > + help > + Keeps all active closures in a linked list and provides a debugfs > + interface to list them, which makes it possible to see asynchronous > + operations that get stuck. According to coding-style.rst, the help text (3 lines above) should be indented with 2 additional spaces. > + help > + Keeps all active closures in a linked list and provides a debugfs > + interface to list them, which makes it possible to see asynchronous > + operations that get stuck. -- ~Randy